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