Forbid creating multiple tasks with the same ID #24
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: worker tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| worker_tests: | |
| strategy: | |
| matrix: | |
| os: [Linux, Windows] | |
| include: | |
| - os: Linux | |
| pool: ubuntu-latest | |
| - os: Windows | |
| pool: windows-latest | |
| name: Run tests on ${{ matrix.os }} | |
| runs-on: ${{ matrix.pool }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version: "1.23.6" | |
| - name: Build worker Docker image | |
| if: ${{ matrix.os != 'Windows' }} | |
| run: | | |
| docker compose build | |
| - name: Run tests | |
| run: | | |
| go test ./tests/worker/... |