Skip to content

Commit

Permalink
Merge pull request #112 from mineiros-io/soerenmartius/update-github-…
Browse files Browse the repository at this point in the history
…actions

Upgrade github actions pipeline from template
  • Loading branch information
soerenmartius authored Mar 7, 2022
2 parents b7d24fb + 65aa795 commit b4653e6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,43 @@ on:
branches:
- main

concurrency:
group: terraform-github-repository
cancel-in-progress: false

jobs:
pre-commit:
runs-on: ubuntu-latest
name: Static Analysis
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run pre-commit
run: make test/pre-commit

unit-tests:
needs: pre-commit
runs-on: ubuntu-latest
name: Unit Tests
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Check for Terraform file changes
uses: getsentry/paths-filter@v2
id: changes
with:
token: ${{ github.token }}
filters: |
terraform:
- '**/*.tf'
- '**/*.go'
- 'go.mod'
- 'go.sum'
- name: Run Unit Tests
if: steps.changes.outputs.terraform == 'true'
run: make test/unit-tests
env:
GITHUB_OWNER: ${{ secrets.TEST_GITHUB_ORGANIZATION }}
Expand Down

0 comments on commit b4653e6

Please sign in to comment.