Skip to content

ci: bump actions/setup-go from 5 to 7 #5

ci: bump actions/setup-go from 5 to 7

ci: bump actions/setup-go from 5 to 7 #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
name: Build & test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
go: [oldstable, stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go }}
cache: true
- name: Build
run: go build ./...
- name: Test
run: go test ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v7
with:
go-version: stable
cache: true
- name: gofmt
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "These files are not gofmt-formatted:"
gofmt -l .
exit 1
fi
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest