Skip to content

Adds feature to output PK Token for debugging purposes #39

Adds feature to output PK Token for debugging purposes

Adds feature to output PK Token for debugging purposes #39

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@v5
with:
go-version-file: 'go.mod'
- 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@v5
with:
go-version-file: 'go.mod'
- 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@v5
with:
go-version-file: 'go.mod'
- name: Test
run: go test ./...