Bump golang from 70b4654 to 3889b42
#224
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 Test | |
| on: | |
| pull_request: | |
| jobs: | |
| go-test: | |
| name: Go test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check for Go/frontend changes | |
| id: changes | |
| run: | | |
| FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- '*.go' 'go.mod' 'go.sum' 'webui/**' 'package.json' 'package-lock.json') | |
| if [ -z "$FILES" ]; then | |
| echo "skip=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "skip=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Set up Go | |
| if: steps.changes.outputs.skip != 'true' | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: 'stable' | |
| - name: Set up Node | |
| if: steps.changes.outputs.skip != 'true' | |
| uses: actions/setup-node@v7.0.0 | |
| with: | |
| node-version: latest | |
| - name: Build SPA | |
| if: steps.changes.outputs.skip != 'true' | |
| run: npm ci && sh webui/build.sh | |
| - name: Run Go tests | |
| if: steps.changes.outputs.skip != 'true' | |
| run: go test -race -cover ./... |