Skip to content

Update Github CI versions #906

Update Github CI versions

Update Github CI versions #906

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: CI
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Check diff between gofmt and code
run: diff <(gofmt -d .) <(echo -n)
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22"]
steps:
- name: Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: go test -v -race ./...
lint:
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Go vet
run: go vet -x ./...
- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v3
with:
skip-pkg-cache: true
skip-build-cache: true
version: v1.54
args: --out-format colored-line-number