Skip to content

feat: update branch_protection for provider v6.x #3

feat: update branch_protection for provider v6.x

feat: update branch_protection for provider v6.x #3

Workflow file for this run

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 }}