Krolyxon
Commit 3ec5af1

Branches

Tags

Refs →

bench513ec5af1

CI: update actions to Node 24, run once per change, lint install scripts

actions/checkout v7 drops the Node 20 deprecation warning. Pushes run on
master only, so a PR no longer builds twice; superseded runs are
cancelled. Builds use the committed Cargo.lock.
Author
krolyxon
Date
2026-11-01 00:05 +0530
Parent
83c841a
Commit
3ec5af19cb5ef61810a6f112b45c407a1a818b92

+25 −4

1 file changed

  1. M .github/workflows/ci.yml +25 −4
M .github/workflows/ci.yml View
@@ -2,8 +2,14 @@ name: CI
22
33 on:
44 push:
5+ branches: [master]
56 pull_request:
67
8+# A newer push to the same branch or PR supersedes the running check.
9+concurrency:
10+ group: ci-${{ github.ref }}
11+ cancel-in-progress: true
12+
713 env:
814 CARGO_TERM_COLOR: always
915
@@ -16,7 +22,7 @@ jobs:
1622 os: [ubuntu-latest, windows-latest, macos-latest]
1723 runs-on: ${{ matrix.os }}
1824 steps:
19− - uses: actions/checkout@v4
25+ - uses: actions/checkout@v7
2026 - uses: dtolnay/rust-toolchain@stable
2127 with:
2228 components: clippy
@@ -26,6 +32,21 @@ jobs:
2632 sudo apt-get update
2733 sudo apt-get install -y libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
2834 - uses: Swatinem/rust-cache@v2
29− - run: cargo build --workspace --release
30− - run: cargo test --workspace
31− - run: cargo clippy --workspace --all-targets -- -D warnings
35+ - run: cargo build --workspace --release --locked
36+ - run: cargo test --workspace --locked
37+ - run: cargo clippy --workspace --all-targets --locked -- -D warnings
38+
39+ scripts:
40+ name: install scripts
41+ runs-on: ubuntu-latest
42+ steps:
43+ - uses: actions/checkout@v7
44+ - name: shellcheck install.sh
45+ run: shellcheck install.sh
46+ - name: PSScriptAnalyzer install.ps1
47+ shell: pwsh
48+ run: |
49+ # Write-Host is the right tool for an installer piped into iex.
50+ $issues = Invoke-ScriptAnalyzer -Path install.ps1 -Severity Warning,Error -ExcludeRule PSAvoidUsingWriteHost
51+ $issues | Format-Table -AutoSize
52+ if ($issues) { exit 1 }