blob: 82ee9962899f55e63c9346ca0dec3ea4991c2c55 [file] [log] [blame]
Mohammed Naser9a5ff202022-09-07 15:56:48 -04001name: integration
2
3concurrency:
Mohammed Naser15424a02022-09-21 17:57:07 -04004 group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
Mohammed Naser9a5ff202022-09-07 15:56:48 -04005 cancel-in-progress: true
6
7on:
8 pull_request:
9 types:
10 - opened
11 - synchronize
12 - reopened
13 paths:
14 - .github/workflows/integration.yml
Mohammed Naserd06bfed2022-09-21 16:46:21 -040015 - atmosphere/**
Mohammed Naser9a5ff202022-09-07 15:56:48 -040016 - molecule/**
17 - playbooks/**
18 - plugins/**
19 - roles/**
20 push:
21 branches:
22 - main
23 paths:
24 - .github/workflows/integration.yml
Mohammed Naserd06bfed2022-09-21 16:46:21 -040025 - atmosphere/**
Mohammed Naser9a5ff202022-09-07 15:56:48 -040026 - molecule/**
27 - playbooks/**
28 - plugins/**
29 - roles/**
30
31jobs:
32 molecule:
33 runs-on: ubuntu-latest
34 steps:
35 - name: Checkout project
dependabot[bot]519c1932022-10-05 04:37:24 +000036 uses: actions/checkout@v3.1.0
Mohammed Naser9a5ff202022-09-07 15:56:48 -040037
38 - name: Set up Go
dependabot[bot]18a6ee62022-10-19 03:38:55 +000039 uses: actions/setup-go@v3.3.1
Mohammed Naser9a5ff202022-09-07 15:56:48 -040040 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]67da00d2022-10-10 03:41:28 +000055 - uses: gofrolist/molecule-action@v2.2.44
Mohammed Naser9a5ff202022-09-07 15:56:48 -040056 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 }}