Skip to content

Commit ea4ece3

Browse files
committed
.github/workflows: add test workflow
Run go test ./... on Linux, macOS, and Windows with the Go version from go.mod, on pushes to main and on pull requests. Updates #cleanup Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Change-Id: I4e8c2a91f7d6b3e05a1c9d8f2b7e6a4c3d0f1b29
1 parent 1b2670e commit ea4ece3

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
22+
with:
23+
go-version-file: go.mod
24+
cache: false
25+
- run: go test ./...

0 commit comments

Comments
 (0)