miller/.github/workflows/test-snap-can-build.yml
John Kerl e98185f59c
Update snapcore/action-build to node24 SHA, drop unused matrix (#2119)
* Update snapcore/action-build to node24 SHA, drop unused matrix

snapcore/action-build@v1 targets Node.js 20, which is deprecated on
GitHub Actions runners (forced to run on Node.js 24 with a warning).
Upstream has an open PR to update (https://github.com/snapcore/action-build/pull/1)
but it has been stale for a while, so we pin directly to its HEAD SHA
(edf78ca) until upstream merges and cuts a new tag.

Also removes the `strategy.matrix.node-version: [20.x]` block, which
was dead config — there was no `actions/setup-node` step consuming it.

Fixes the warning seen in:
https://github.com/johnkerl/miller/actions/runs/28449033140

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

* comment

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-06-30 13:24:15 -04:00

26 lines
696 B
YAML

name: 🧪 Snap Builds
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.0
# Context for pin: https://github.com/johnkerl/miller/pull/2119
- uses: snapcore/action-build@edf78ca622b1eb99b69f09420bb19f77e4f84ac1
id: build
- uses: diddlesnaps/snapcraft-review-action@v1
with:
snap: ${{ steps.build.outputs.snap }}
isClassic: 'false'
# Plugs and Slots declarations to override default denial (requires store assertion to publish)
# plugs: ./plug-declaration.json
# slots: ./slot-declaration.json