feat: upgrade to Go 1.26, add Docker targets, and improve build/test scripts #256
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: Run tests | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build-linux: | |
| name: Build & test (Linux) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Go | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.26' | |
| - name: Build | |
| run: make executable | |
| - name: Create logs directory | |
| run: mkdir logs | |
| - name: Build test-server | |
| run: make build-test-server | |
| - name: Run Tests | |
| run: make test | |
| - name: Archive logs | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: test-logs-linux | |
| path: | | |
| test-logs | |
| build-macos: | |
| name: Build & test (macOS) | |
| needs: build-linux | |
| if: ${{ needs.build-linux.result == 'success' }} | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Go | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.26' | |
| - name: Build | |
| run: make executable | |
| - name: Create logs directory | |
| run: mkdir logs | |
| - name: Build test-server | |
| run: make build-test-server | |
| - name: Run Tests | |
| run: make test | |
| - name: Archive logs | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: test-logs-macos | |
| path: | | |
| test-logs |