fatcontext/.github/workflows/go.yml

31 lines
580 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:
2024-07-23 19:13:11 +02:00
go: ['1.21', '1.22', '1.23.0-rc.2']
2024-03-27 22:17:29 +01:00
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
2024-03-27 22:59:32 +01:00
run: make test