Bump the all group across 1 directory with 2 updates (#180) #261
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 ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build + Test Stable | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: auto | |
steps: | |
- name: Build | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: '1.22.x' | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic | |
- name: Coverage | |
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
build-legacy: | |
name: Build + Test Previous Stable | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: auto | |
steps: | |
- name: Build | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: '1.21.x' | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test ./... |