mirror of
https://github.com/github/gh-stack.git
synced 2026-09-14 20:26:28 +08:00
30 lines
565 B
YAML
30 lines
565 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: Download dependencies
|
|
run: go mod download
|
|
- name: Vet
|
|
run: go vet ./...
|
|
- name: Test
|
|
run: go test -race -count=1 ./...
|