Skip to content

Commit

Permalink
.github/workflows: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSottile committed Jan 17, 2024
1 parent 5e670a5 commit 1507764
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Go tests
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Go (from go.mod)
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Run tests
run: go test ./...
- name: Run tests (short + race)
run: go test -short -race ./...

0 comments on commit 1507764

Please sign in to comment.