This repository has been archived by the owner on Dec 15, 2024. It is now read-only.
deps: update go dependencies #9
Workflow file for this run
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: Run CI Tests | |
on: [push] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hashicorp/setup-golang@v1 | |
with: | |
version-file: go.mod | |
- name: Run Go Vet | |
run: | | |
go vet ./... | |
- name: Run Go Fmt | |
run: | | |
files=$(go fmt ./...) | |
if [ -n "$files" ]; then | |
echo "Please run gofmt on these files ..." | |
echo "$files" | |
exit 1 | |
fi | |
- name: Run Go Test | |
run: | | |
go test -race -v ./... |