Skip to content

Commit

Permalink
Added test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmu committed Jun 10, 2024
1 parent b2fce4b commit 35a04c4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test
on: [pull_request]

concurrency:
group: test-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
id: go
- name: Test
run: go test ./...
- name: Test Race
run: go test -race ./...

0 comments on commit 35a04c4

Please sign in to comment.