Skip to content

fwrefusals: follow the texts into the split command handlers #62

fwrefusals: follow the texts into the split command handlers

fwrefusals: follow the texts into the split command handlers #62

Workflow file for this run

name: ci
# Runs on every push/PR: vet + tests, plus a full GoReleaser snapshot build so
# a cross-platform break (e.g. the macOS cgo/IOKit requirement) is caught before
# tagging a release rather than during it.
on:
push:
branches: [main]
pull_request:
# release.yml calls this workflow so a tag publishes only after the same checks pass.
workflow_call:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: true
# The firmware's refusal texts are pinned in internal/fwrefusals; the test checks them
# against the firmware's main branch, so a wording change there fails here.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: embeddedci-com/benchpod-firmware
ref: main
path: benchpod-firmware
sparse-checkout: stm32h563/src
persist-credentials: false
- run: go vet ./...
- run: go test ./... -count=1
env:
BENCHPOD_FIRMWARE_DIR: ${{ github.workspace }}/benchpod-firmware
build:
# Same runner as release so the macOS cgo build is exercised on every PR.
runs-on: macos-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: true
- uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
with:
distribution: goreleaser
version: "~> v2"
args: release --snapshot --clean --skip=publish