Skip to content

Update actions and dependencies #47

Update actions and dependencies

Update actions and dependencies #47

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: [1.17.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: --timeout=5m
install-mode: binary
- name: Tests
run: |
go mod tidy -compat=1.17
go test -v ./...
go test -cpu=1 -short -race ./...
go test -cpu=4 -short -race ./...
go-releaser-check:
needs: build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.17.x
- name: Checkout code
uses: actions/checkout@v3
- name: goreleaser deprecation
run: curl -sfL https://git.io/goreleaser | VERSION=v1.2.5 sh -s -- check
- name: goreleaser snapshot
run: curl -sL https://git.io/goreleaser | VERSION=v1.2.5 sh -s -- --snapshot --skip-publish --rm-dist