Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
# Go module dependencies (go.mod / go.sum).
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5

# GitHub Actions are SHA-pinned in .github/workflows/*; Dependabot bumps the
# pin (and the trailing `# vX.Y.Z` comment) when a new release lands.
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
37 changes: 24 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ on:
# Nightly (07:00 UTC): keep the slow release-profile artifact path honest.
- cron: "0 7 * * *"

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with: { go-version-file: go.mod }
- run: go build ./...
- run: go vet ./...
Expand Down Expand Up @@ -47,12 +50,16 @@ jobs:
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with: { path: kit }
- uses: actions/setup-go@v5
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with: { go-version-file: kit/go.mod }
- uses: acifani/setup-tinygo@v2
- uses: acifani/setup-tinygo@db56321a62b9a67922bb9ac8f9d085e218807bb3 # v2.0.1
with: { tinygo-version: "0.41.1" }
# binaryen is intentionally left at the runner's apt candidate: pinning a
# literal apt version (binaryen=<ver>) hard-fails the install whenever the
# ubuntu-latest image ships a different candidate. TinyGo (the artifact
# toolchain that actually shapes the wasm) is the pinned input above.
- run: sudo apt-get update && sudo apt-get install -y binaryen
- name: build shellcade-kit from this PR's source
run: |
Expand Down Expand Up @@ -84,11 +91,11 @@ jobs:
wasm-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with: { path: kit }
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with: { targets: wasm32-wasip1 }
- uses: actions/setup-go@v5
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with: { go-version-file: kit/go.mod }
- name: build shellcade-kit from this PR's source
run: |
Expand Down Expand Up @@ -117,8 +124,8 @@ jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with: { targets: wasm32-wasip1 }
- name: crate version == kit version (lockstep)
run: |
Expand All @@ -144,12 +151,16 @@ jobs:
if: github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with: { path: kit }
- uses: actions/setup-go@v5
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with: { go-version-file: kit/go.mod }
- uses: acifani/setup-tinygo@v2
- uses: acifani/setup-tinygo@db56321a62b9a67922bb9ac8f9d085e218807bb3 # v2.0.1
with: { tinygo-version: "0.41.1" }
# binaryen is intentionally left at the runner's apt candidate: pinning a
# literal apt version (binaryen=<ver>) hard-fails the install whenever the
# ubuntu-latest image ships a different candidate. TinyGo (the artifact
# toolchain that actually shapes the wasm) is the pinned input above.
- run: sudo apt-get update && sudo apt-get install -y binaryen
- name: build shellcade-kit from this PR's source
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ on:
# that actually catches them.
- cron: "30 7 * * *"

permissions:
contents: read

jobs:
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with: { go-version-file: go.mod }
# Deliberately unpinned: vuln scanning wants the current tool and the
# current database, unlike the reproducible build toolchain above.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
ref: ${{ github.event.inputs.tag || github.ref_name }}
- uses: actions/setup-go@v5
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with: { go-version-file: go.mod }
- uses: goreleaser/goreleaser-action@v6
- uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
with:
distribution: goreleaser
version: "~> v2"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
# The tag push in scripts/tag-release.sh must use a PAT, not the
# default GITHUB_TOKEN: GitHub does NOT fire workflow triggers for tags
# pushed with GITHUB_TOKEN, so the downstream GoReleaser/Homebrew/notify
Expand All @@ -22,13 +22,13 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.KIT_RELEASE_TOKEN }}
- uses: actions/setup-node@v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with: { node-version: 22 }
- run: npm ci
# With pending changesets: opens/updates the "Version Packages" PR.
# With none (the PR just merged): runs the publish script, which pushes
# the vX.Y.Z tag — and the tag triggers the GoReleaser workflow.
- uses: changesets/action@v1
- uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
with:
version: npm run version # changeset version + sync rust/Cargo.toml (lockstep)
publish: npm run release
Expand Down
Loading