mirror of
https://github.com/numtide/treefmt.git
synced 2024-08-17 21:00:27 +03:00
ci: add go workflow
Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
parent
4ffe2ca16c
commit
978eb486f4
24
.github/workflows/go.yml
vendored
Normal file
24
.github/workflows/go.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: Go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
||||
go: ["1.22"]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
name: Build (Go ${{ matrix.go }}, OS ${{ matrix.os }})
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- name: go test -race -bench='.+' -v ./...
|
||||
run: go test -race -bench='.+' -v ./...
|
Loading…
Reference in New Issue
Block a user