mirror of
https://github.com/storytold/spark.git
synced 2026-11-19 08:40:46 +01:00
Mutable action tags are a supply-chain risk: a moved tag runs different code without a diff. Every workflow action is now pinned through .github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync or tampered one fails instead of running.
38 lines
767 B
YAML
38 lines
767 B
YAML
name: Spark CI Linux
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
test:
|
|
name: spark
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: ['22.x']
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- name: Use Node.js ${{ matrix['node-version'] }}
|
|
uses: actions/setup-node@v4.4.0
|
|
with:
|
|
node-version: ${{ matrix['node-version'] }}
|
|
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v4.4.0
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Tests
|
|
run: npm run test |