mirror of
https://github.com/adnanh/webhook.git
synced 2026-09-24 04:29:41 +08:00
35 lines
899 B
YAML
35 lines
899 B
YAML
name: build
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
env:
|
|
# The special value "local" tells Go to use the bundled Go
|
|
# version rather than trying to fetch one according to a
|
|
# `toolchain` value in `go.mod`. This ensures that we're
|
|
# really running the Go version in the CI matrix rather than
|
|
# one that the Go command has upgraded to automatically.
|
|
GOTOOLCHAIN: local
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go-version: [1.21.x, 1.22.x]
|
|
os: [ubuntu-latest, windows-latest]
|
|
include:
|
|
- go-version: 1.26.x
|
|
os: macos-latest
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
id: go
|
|
|
|
- name: Build
|
|
run: go build -v
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|