Skip to content

Commit

Permalink
Merge pull request #26 from padok-team/ci/matrix-status-check
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard committed Oct 17, 2022
2 parents 54cdaf2 + a8d9166 commit bbb53aa
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
@@ -1,18 +1,20 @@
name: Build and test
name: Continous Integration

on: push

jobs:
build-and-unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: "1.18"
- run: make build test

end-to-end-tests:
name: End-to-End Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -25,9 +27,23 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: "1.18"
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.terraform-version }}
terraform_wrapper: false # script interferes with parsing of plan
- run: make test-e2e

end-to-end-tests-check:
name: End-to-End Tests (matrix)
if: ${{ always() }}
runs-on: ubuntu-latest
needs: [end-to-end-tests]
steps:
- run: |
result="${{ needs.end-to-end-tests.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi

0 comments on commit bbb53aa

Please sign in to comment.