GitHub Action
The Action runs one released starboard binary in a GitHub Actions job:
- uses: actions/checkout@v7- uses: c65llc/starboard@v0 with: version: v0.2.0 args: lint --strictIt works on Linux, macOS and Windows runners, on x64 and arm64.
Inputs
Section titled “Inputs”| Input | Required | Default | Value |
|---|---|---|---|
version |
yes | none | The exact Starboard release to run, as vX.Y.Z, such as v0.1.0. |
args |
no | lint |
The arguments for starboard, on one line. |
working-directory |
no | . |
The directory to run starboard in. |
args is split on whitespace and nothing else: there is no shell, so no
quoting, globbing or variable expansion, and no argument can contain a
space. A value with more than one line is an error.
What it does
Section titled “What it does”- Checks that
versionis an exact release,vX.Y.Z, before it downloads anything. - Downloads that release’s archive for the runner’s operating system and
architecture, and its
checksums.txt, from the repository’s releases. - Checks the archive’s SHA-256 against
checksums.txt, and stops if it does not match. - Extracts the binary and runs it as
starboard <args>inworking-directory. The job fails ifstarboardexits with a status other than 0.
The Action’s own tag, @v0, moves to each new 0.x release, and @v1 will
do the same from 1.0. The binary it runs changes only when you change
version, so a new Starboard release never changes your CI’s result until
you choose it.
Examples
Section titled “Examples”Check the reference on every pull request, warnings included:
- uses: c65llc/starboard@v0 with: version: v0.2.0 args: lint --strictA project in a subdirectory of the repository, app/:
- uses: c65llc/starboard@v0 with: version: v0.2.0 args: --dir app lintworking-directory: app with args: lint does the same.
Only check that the generated pages are current:
- uses: c65llc/starboard@v0 with: version: v0.2.0 args: generate --checkA full workflow is in Check it in CI.