build: bump google.golang.org/protobuf from 1.36.9 to 1.36.10 #125
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: pr | |
| on: | |
| pull_request: | |
| env: | |
| GLEAM_VERSION: '1.12.0' | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read | |
| outputs: | |
| gleam: ${{ steps.filter.outputs.gleam }} | |
| go: ${{ steps.filter.outputs.go }} | |
| go-deps: ${{ steps.filter.outputs.go-deps }} | |
| release: ${{ steps.filter.outputs.release }} | |
| workflows: ${{ steps.filter.outputs.workflows }} | |
| yml: ${{ steps.filter.outputs.yml }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| gleam: | |
| - "internal/server/_client/**" | |
| - ".github/workflows/pr.yml" | |
| go: | |
| - "cmd/**" | |
| - "internal/**" | |
| - "tests/**" | |
| - "**/*.go" | |
| - "go.*" | |
| - ".golangci.yml" | |
| - "main.go" | |
| - ".github/workflows/pr.yml" | |
| go-deps: | |
| - "go.mod" | |
| - "go.sum" | |
| - ".github/workflows/pr.yml" | |
| release: | |
| - ".goreleaser.yaml" | |
| - ".github/workflows/pr.yml" | |
| workflows: | |
| - ".github/workflows/**.yml" | |
| yml: | |
| - "**.yml" | |
| - "**.yaml" | |
| lint-go: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.go == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: v2.4.0 | |
| lint-gleam: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.gleam == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: "27.1" | |
| gleam-version: ${{ env.GLEAM_VERSION }} | |
| rebar3-version: "3" | |
| - name: Compile gleam to js | |
| run: | | |
| cd internal/server/_client | |
| gleam deps download | |
| gleam format src --check | |
| build-go: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.go == 'true' }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: go build | |
| run: go build -v ./... | |
| build-gleam: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.gleam == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: "27.1" | |
| gleam-version: ${{ env.GLEAM_VERSION }} | |
| rebar3-version: "3" | |
| - name: Compile gleam to js | |
| run: | | |
| cd internal/server/_client | |
| gleam deps download | |
| gleam run -m lustre/dev build app | |
| - name: Ensure compiled files haven't changed | |
| run: | | |
| if git --no-pager diff --name-only | grep -q "priv/static"; then | |
| echo "compiled files have changed; compile them again" | |
| git --no-pager diff --name-only | |
| false | |
| fi | |
| test-go: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.go == 'true' }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| version: "32.1" | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run tests | |
| env: | |
| INTEGRATION: "1" | |
| KPLAY_PROTOC_COMPATIBILITY_TEST: "1" | |
| run: go test ./... -v | |
| lint-yaml: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.yml == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - uses: dhth/composite-actions/.github/actions/lint-yaml@main | |
| lint-workflows: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.workflows == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - uses: dhth/composite-actions/.github/actions/lint-actions@main | |
| release-check: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.release == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Release check | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: 'v2.9.0' | |
| args: check | |
| vulncheck: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.go-deps == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: install govulncheck | |
| run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
| - name: govulncheck | |
| run: govulncheck ./... |