Skip to content

Update deps

Update deps #62

Workflow file for this run

name: ci
on: [pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.19.x, 1.20.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2
- name: Cache go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Run go vet
run: go vet ./...
- name: Check gofmt diff
run: |
gofmt -d -s $(find . -name '*.go' |grep -v vendor)
git diff --exit-code; code=$?; git checkout -- .; (exit $code)
- name: Tests
shell: bash
run: go test ./...