Skip to content

Audit and correct package documentation #11

Audit and correct package documentation

Audit and correct package documentation #11

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Build + unit tests. Always runs, needs no secrets.
check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run check
# Live end-to-end tests against real Sprites.
# Uses the "pi" GitHub Environment, which holds the SPRITES_TOKEN secret.
# Pull-request code never reaches this job. The test cleans up the labeled
# Sprite it creates and stale labeled environments from interrupted runs.
e2e:
if: >-
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
(github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
needs: check
runs-on: ubuntu-latest
timeout-minutes: 20
environment: pi
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: npm
- run: npm ci
- name: Live Sprite integration tests
run: npm run test:e2e
env:
SPRITES_TOKEN: ${{ secrets.SPRITES_TOKEN }}