Skip to content

Bump github/codeql-action from 3 to 4 #143

Bump github/codeql-action from 3 to 4

Bump github/codeql-action from 3 to 4 #143

Workflow file for this run

name: Build
permissions:
contents: read
pull-requests: write
on:
pull_request:
push:
branches:
- main
- master
jobs:
test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x, 1.24.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -race ./...
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Coverage
run: go test -race -cover -covermode=atomic -coverprofile=coverage.txt ./...
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}