Bump the go group in /go with 5 updates #461
Workflow file for this run
This file contains 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: Go | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "**.go" | |
- "go/go.mod" | |
- "go/go.sum" | |
- ".github/workflows/go.yml" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "**.go" | |
- "go/go.mod" | |
- "go/go.sum" | |
- ".github/workflows/go.yml" | |
# Cancel previous runs for PRs but not pushes to main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./go | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.x" | |
cache-dependency-path: go/go.sum | |
- name: Install dependencies | |
run: go get . | |
- name: Build | |
run: go build -v ./... | |
- name: Run tests | |
run: go test |