test(ci): validate link checker with temporary broken-link fixtures #702
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: Unit | |
| on: [push, pull_request] | |
| env: | |
| GITHUB_ACTIONS: true | |
| jobs: | |
| test: | |
| name: "Tests (${{ matrix.os }})" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6 | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: { go-version-file: 'go.mod' } | |
| - run: go version | |
| - run: make test-unit race=true | |
| if: matrix.os != 'ubuntu-latest' | |
| - run: make test-unit race=true coverage=true | |
| if: matrix.os == 'ubuntu-latest' | |
| - id: covfiles | |
| # Collect every coverage profile make test-unit produced (root + | |
| # each nested module) so codecov picks up new modules with no edit. | |
| run: echo "files=$(ls tmp/*.cov | paste -sd, -)" >> "$GITHUB_OUTPUT" | |
| if: matrix.os == 'ubuntu-latest' | |
| - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ${{ steps.covfiles.outputs.files }} | |
| flags: unit | |
| if: matrix.os == 'ubuntu-latest' | |
| bench: | |
| name: Benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6 | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: { go-version-file: 'go.mod' } | |
| - run: go version | |
| - run: make test-bench | |
| samples: | |
| name: Build samples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6 | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: { go-version-file: 'go.mod' } | |
| - run: go version | |
| - run: make build-samples | |