Skip to content

Tests #179 405a1c22217755a808a58328c4dc7c677b10d17e #27

Tests #179 405a1c22217755a808a58328c4dc7c677b10d17e

Tests #179 405a1c22217755a808a58328c4dc7c677b10d17e #27

Workflow file for this run

name: Go Checks
on:
[push]
jobs:
gofmt:
name: Check Code Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.8
- name: Check formatting
run: |
FILES=$(gofmt -l .)
if [ -n "$FILES" ]; then
echo "These files are not formatted correctly:"
echo "$FILES"
exit 1
fi
govet:
name: Vet Code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.8
- name: Vet
run: go vet ./...
gotest:
name: Run Tests
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.8
- name: Test
run: go test ./...