diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e064c89ae..5572312ce 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -19,10 +19,21 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: ${{ github.event.pull_request.commits }} + - name: setup go + uses: actions/setup-go@v6 + with: + go-version: "1.25.x" + cache: false + - name: validate conventional commit prefix working-directory: scripts run: ./validate-conventional-commit-prefix.sh + - name: golangci-lint + uses: golangci/golangci-lint-action@v8 + with: + args: --timeout=5m --color=always --max-same-issues=0 --max-issues-per-linter=0 + - name: setup regal uses: StyraInc/setup-regal@v1 with: @@ -46,7 +57,13 @@ jobs: --format github validate: - runs-on: ubuntu-latest + strategy: + matrix: + os: + - 'ubuntu-latest' + - 'macos-latest' + - 'windows-latest' + runs-on: ${{ matrix.os }} steps: - name: checkout source uses: actions/checkout@v5 @@ -57,11 +74,6 @@ jobs: go-version: "1.25.x" cache: false - - name: golangci-lint - uses: golangci/golangci-lint-action@v8 - with: - args: --timeout=5m --color=always --max-same-issues=0 --max-issues-per-linter=0 - - name: build run: make build