Task/release #2629
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: Test | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24.3" | |
| - name: Get dependencies | |
| run: go mod download | |
| - name: Install templ and generate | |
| run: | | |
| go mod download | |
| go tool templ generate | |
| - name: Run tests | |
| env: | |
| CI: true | |
| run: | | |
| mkdir -p test-results | |
| go test -v ./... > test-results/test.log | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: go-test-results | |
| path: test-results/test.log |