Skip to content

Commit

Permalink
Add go test on-push workflow
Browse files Browse the repository at this point in the history
Fixes #45
  • Loading branch information
zombiezen committed Sep 23, 2024
1 parent 03e6a8e commit 1232083
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 @@
# Copyright 2024 The zb Authors
# SPDX-License-Identifier: MIT

name: Test
on:
push:
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
permissions:
contents: read
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run tests
run: go test -mod=readonly -race ./...

0 comments on commit 1232083

Please sign in to comment.