Skip to content

Update GitHub Actions (#125) #280

Update GitHub Actions (#125)

Update GitHub Actions (#125) #280

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
permissions:
contents: read
id-token: write
pull-requests: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-15
- ubuntu-24.04
- windows-2025
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: curioswitch/go-build/.github/actions/setup-go@f60fc8379d735d0415c0c56339d389f680760d96 # v0.6.3
- name: run lints
# We don't have OS-specific code so would be completely repetitive to run
# lint on all of them.
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: go run build lint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: run tests
run: go run build test