BREAKING: remove v3 and deprecations #384
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@v4 | |
- name: Run pre-commit | |
uses: docker://ghcr.io/antonbabenko/pre-commit-terraform:latest | |
unit-tests: | |
needs: pre-commit | |
runs-on: ubuntu-latest | |
name: Unit Tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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 }} |