Repository navigation
Bump actions/checkout from 4 to 7 #14
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| name: Validate (dotnet build + test, fmt, validate, tflint) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - name: Build the function and the tests | |
| run: dotnet build FindNextCIDRRange.sln -c Release | |
| - name: Unit tests (the contract guard) | |
| run: dotnet test FindNextCIDRRange.sln -c Release --no-build | |
| - uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "~> 1.9" | |
| - name: Terraform fmt | |
| run: terraform -chdir=terraform fmt -check -recursive | |
| - name: Validate the stack | |
| run: | | |
| set -euo pipefail | |
| terraform -chdir=terraform init -backend=false -input=false >/dev/null | |
| terraform -chdir=terraform validate | |
| - name: Setup TFLint | |
| uses: terraform-linters/setup-tflint@b480b8fcdaa6f2c577f8e4fa799e89e756bb7c93 # v6.2.2 | |
| - name: TFLint | |
| run: | | |
| set -euo pipefail | |
| ( cd terraform && tflint --init && tflint --recursive ) |