feat: add [squash_merge|merge]_commit_[messsage|title] #376
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD Pipeline | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
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/docker/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/docker/unit-tests | |
env: | |
GITHUB_OWNER: ${{ secrets.TEST_GITHUB_ORGANIZATION }} | |
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }} |