Skip to content

[chore] : Bump actions/checkout from 7.0.0 to 7.0.1 in the github-actions group #34

[chore] : Bump actions/checkout from 7.0.0 to 7.0.1 in the github-actions group

[chore] : Bump actions/checkout from 7.0.0 to 7.0.1 in the github-actions group #34

Workflow file for this run

name: Test and Lint
on:
pull_request:
push:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["oldstable", "stable"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ matrix.go-version }}
- 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 ./...