Mohammed Naser | 9a5ff20 | 2022-09-07 15:56:48 -0400 | [diff] [blame] | 1 | name: integration |
| 2 | |
| 3 | concurrency: |
Mohammed Naser | 15424a0 | 2022-09-21 17:57:07 -0400 | [diff] [blame] | 4 | group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} |
Mohammed Naser | 9a5ff20 | 2022-09-07 15:56:48 -0400 | [diff] [blame] | 5 | cancel-in-progress: true |
| 6 | |
| 7 | on: |
| 8 | pull_request: |
| 9 | types: |
| 10 | - opened |
| 11 | - synchronize |
| 12 | - reopened |
| 13 | paths: |
| 14 | - .github/workflows/integration.yml |
Mohammed Naser | d06bfed | 2022-09-21 16:46:21 -0400 | [diff] [blame] | 15 | - atmosphere/** |
Mohammed Naser | 9a5ff20 | 2022-09-07 15:56:48 -0400 | [diff] [blame] | 16 | - molecule/** |
| 17 | - playbooks/** |
| 18 | - plugins/** |
| 19 | - roles/** |
| 20 | push: |
| 21 | branches: |
| 22 | - main |
| 23 | paths: |
| 24 | - .github/workflows/integration.yml |
Mohammed Naser | d06bfed | 2022-09-21 16:46:21 -0400 | [diff] [blame] | 25 | - atmosphere/** |
Mohammed Naser | 9a5ff20 | 2022-09-07 15:56:48 -0400 | [diff] [blame] | 26 | - molecule/** |
| 27 | - playbooks/** |
| 28 | - plugins/** |
| 29 | - roles/** |
| 30 | |
| 31 | jobs: |
| 32 | molecule: |
| 33 | runs-on: ubuntu-latest |
| 34 | steps: |
| 35 | - name: Checkout project |
dependabot[bot] | 519c193 | 2022-10-05 04:37:24 +0000 | [diff] [blame] | 36 | uses: actions/checkout@v3.1.0 |
Mohammed Naser | 9a5ff20 | 2022-09-07 15:56:48 -0400 | [diff] [blame] | 37 | |
| 38 | - name: Set up Go |
dependabot[bot] | 18a6ee6 | 2022-10-19 03:38:55 +0000 | [diff] [blame] | 39 | uses: actions/setup-go@v3.3.1 |
Mohammed Naser | 9a5ff20 | 2022-09-07 15:56:48 -0400 | [diff] [blame] | 40 | with: |
| 41 | go-version-file: go.mod |
| 42 | cache: true |
| 43 | |
| 44 | - name: Clean-up stale stacks |
| 45 | run: go run ./cmd/atmosphere-ci molecule cleanup |
| 46 | env: |
| 47 | OS_AUTH_URL: https://auth.vexxhost.net/v3 |
| 48 | OS_REGION_NAME: ca-ymq-1 |
| 49 | OS_USER_DOMAIN_NAME: Default |
| 50 | OS_USERNAME: ${{ secrets.OS_USERNAME }} |
| 51 | OS_PASSWORD: ${{ secrets.OS_PASSWORD }} |
| 52 | OS_PROJECT_DOMAIN_NAME: Default |
| 53 | OS_PROJECT_NAME: ${{ secrets.OS_PROJECT_NAME }} |
| 54 | |
dependabot[bot] | 67da00d | 2022-10-10 03:41:28 +0000 | [diff] [blame] | 55 | - uses: gofrolist/molecule-action@v2.2.44 |
Mohammed Naser | 9a5ff20 | 2022-09-07 15:56:48 -0400 | [diff] [blame] | 56 | timeout-minutes: 90 |
| 57 | env: |
| 58 | ATMOSPHERE_STACK_NAME: "atmosphere-${{ github.run_id }}-${{ github.run_attempt }}" |
| 59 | OS_AUTH_URL: https://auth.vexxhost.net/v3 |
| 60 | OS_REGION_NAME: ca-ymq-1 |
| 61 | OS_USER_DOMAIN_NAME: Default |
| 62 | OS_USERNAME: ${{ secrets.OS_USERNAME }} |
| 63 | OS_PASSWORD: ${{ secrets.OS_PASSWORD }} |
| 64 | OS_PROJECT_DOMAIN_NAME: Default |
| 65 | OS_PROJECT_NAME: ${{ secrets.OS_PROJECT_NAME }} |