Skip to content

update github actions #57

update github actions

update github actions #57

Workflow file for this run

---
name: Main
on: [push, pull_request]
jobs:
go-tests:
runs-on: self-hosted
container:
image: golang:1.22.2
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Go test
run: |
# we run vet in another step
go test -vet=off -timeout=1m ./...
# -race can easily make the crypto stuff 10x slower
go test -vet=off -timeout=15m -race -covermode atomic -coverprofile=covprofile ./...
- name: Go analyze
run: |
diff -u <(echo -n) <(gofmt -s -d $(git ls-files '*.go'))
go vet ./...
curl -L https://github.com/dominikh/go-tools/releases/download/2023.1/staticcheck_linux_amd64.tar.gz | tar -xzf -
./staticcheck/staticcheck ./...