Bump actions/checkout from 2.4.0 to 4.0.0 #334
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
steps: | |
- name: Set up Go 1.17 | |
uses: actions/[email protected] | |
with: | |
go-version: 1.17 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/[email protected] | |
- name: Run tests | |
run: go test -race ./... | |
- name: Check go vet | |
run: go vet ./... | |
- name: Check go fmt | |
run: diff -u <(echo -n) <(gofmt -s -d .) |