Skip to content

refactor: stuff

refactor: stuff #34

Workflow file for this run

name: validate
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run build
test:
name: test (Node.js ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
matrix:
node: [20, 22, 24]
fail-fast: false
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run unit
env:
E2E_PRISMIC_EMAIL: ${{ secrets.E2E_PRISMIC_EMAIL }}
E2E_PRISMIC_PASSWORD: ${{ secrets.E2E_PRISMIC_PASSWORD }}
types:
name: "types (TypeScript ${{ matrix.typescript }})"
runs-on: ubuntu-latest
strategy:
matrix:
typescript: ["5.4", "5.6", "5.7", "5.8", "5.9"]
fail-fast: false
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm install --no-save typescript@${{ matrix.typescript }} && npx tsc --version
- run: npm run types