api_shield_operation v4->v5 migration #792
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 | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: false | |
| on: | |
| workflow_dispatch: # Allow manual triggers | |
| push: | |
| branches: | |
| - '**' # Run on all branches | |
| pull_request: | |
| branches: | |
| - '**' # Run on PRs to any branch | |
| jobs: | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Free up disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /usr/local/share/boost | |
| sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
| df -h | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: ./go.mod | |
| - name: Get dependencies | |
| run: | | |
| go mod download | |
| go mod tidy | |
| - name: Run unit tests | |
| run: make test-unit | |
| lint-testdata: | |
| name: Lint Testdata Naming | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: ./go.mod | |
| - name: Get dependencies | |
| run: | | |
| go mod download | |
| go mod tidy | |
| - name: Lint testdata naming conventions | |
| run: make lint-testdata | |
| integration-tests: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: ./go.mod | |
| - name: Get dependencies | |
| run: | | |
| go mod download | |
| go mod tidy | |
| - name: Run integration tests | |
| run: make test-integration |