Skip to content

Use 120 characters as max line length if not configured #928

Use 120 characters as max line length if not configured

Use 120 characters as max line length if not configured #928

Workflow file for this run

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/golangci-lint-action@v3.7.0
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