fatcontext/.github/workflows/go.yml

31 lines
578 B
YAML
Raw Normal View History

2024-03-27 20:01:10 +01:00
name: Go
on:
push:
branches: [ "master" ]
2024-03-27 22:48:14 +01:00
tags: [ "*" ]
2024-03-27 20:01:10 +01:00
pull_request:
branches: [ "master" ]
2024-03-27 22:17:29 +01:00
permissions:
contents: read
pull-requests: read
2024-03-27 20:01:10 +01:00
2024-03-27 22:17:29 +01:00
jobs:
2024-03-27 20:01:10 +01:00
build:
2024-03-27 22:17:29 +01:00
strategy:
matrix:
go: ['1.21', '1.22']
os: [macos-latest, windows-latest, ubuntu-latest]
2024-03-27 22:18:59 +01:00
name: build
2024-03-27 22:17:29 +01:00
runs-on: ${{ matrix.os }}
2024-03-27 20:01:10 +01:00
steps:
2024-03-27 22:17:29 +01:00
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./... -race