Skip to content

feat: self-contained tokens #66

feat: self-contained tokens

feat: self-contained tokens #66

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
jobs:
job_go_checks:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Go environment
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Tidy go module
run: |
go mod tidy
if [[ $(git status --porcelain) ]]; then
git diff
echo
echo "go mod tidy made these changes, please run 'go mod tidy' and include those changes in a commit"
exit 1
fi
- name: Run gofumpt
run: diff -u <(echo -n) <(go run mvdan.cc/gofumpt@@latest -d .)
- name: Run go vet
run: go vet ./...
job_go_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Go environment
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Run Go test -race
run: go test ./... -v -race -timeout=1h