Rule: inconsistent-args
#889
Workflow file for this run
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: Build | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- uses: open-policy-agent/setup-opa@v2 | |
with: | |
version: latest | |
- run: go install git.sr.ht/~charles/rq/cmd/rq@latest | |
- run: build/do.rq pull_request | |
- uses: golangci/[email protected] | |
with: | |
version: v1.55.2 | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- uses: open-policy-agent/setup-opa@v2 | |
with: | |
version: latest | |
# rq doesn't work well on windows currently, or at least | |
# so it seemed, so until we've resolved that together with | |
# the rq maintainers, we'll just run the build steps directly | |
# on windows-latest | |
- run: go build | |
- run: go test ./... | |
- run: go test -tags e2e ./e2e | |
- run: opa check --strict --capabilities build/capabilities.json bundle | |
- run: ./regal lint --format github bundle | |
- run: ./regal table --compare-to-readme bundle |