Skip to content

Improvements to actions #28

Improvements to actions

Improvements to actions #28

Workflow file for this run

name: CI
on: [pull_request]
permissions:
contents: read
jobs:
lint:
strategy:
matrix:
go: ['1.17','1.21']
os: ['ubuntu-latest']
name: lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
test:
strategy:
matrix:
go: ['1.17','1.21']
os: ['ubuntu-latest']
name: test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- run: go test -race ./...