Skip to content

ci: Add on.workflow_dispatch to trigger actions from GitHub web UI #4

ci: Add on.workflow_dispatch to trigger actions from GitHub web UI

ci: Add on.workflow_dispatch to trigger actions from GitHub web UI #4

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Test (${{ matrix.os }} / Go ${{ matrix.go }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ["1.21", "1.22", "stable"]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
- run: go build ./...
- run: go vet ./...
- run: go test ./...