Skip to content

chore(deps): bump the minor-and-patch group across 1 directory with 13 updates #123

chore(deps): bump the minor-and-patch group across 1 directory with 13 updates

chore(deps): bump the minor-and-patch group across 1 directory with 13 updates #123

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
install:
name: Install dependencies
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
cache: npm
- run: npm ci
- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
needs: install
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npm run lint
format:
name: Format
runs-on: ubuntu-latest
timeout-minutes: 5
needs: install
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npm run format:check
typecheck:
name: Type check
runs-on: ubuntu-latest
timeout-minutes: 5
needs: install
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npm run typecheck
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
needs: install
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npm run build
- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: dist
key: dist-${{ github.sha }}
test:
name: Tests (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
timeout-minutes: 10
needs: build
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: dist
key: dist-${{ github.sha }}
- run: npm test
security-audit:
name: Security audit
runs-on: ubuntu-latest
timeout-minutes: 5
needs: install
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npm audit --audit-level=critical
license-check:
name: License check
runs-on: ubuntu-latest
timeout-minutes: 5
needs: install
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npx license-checker --failOn "GPL-2.0;GPL-3.0;AGPL-3.0;LGPL-2.0;LGPL-2.1;LGPL-3.0;SSPL-1.0;EUPL-1.1;EUPL-1.2"
bundle-size:
name: Bundle size check
runs-on: ubuntu-latest
timeout-minutes: 5
needs: build
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v4
with:
path: dist
key: dist-${{ github.sha }}
- run: npx size-limit
commitlint:
name: Lint commits
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: actions/setup-node@d02c89dce7e1ba9ef629ce0680989b3a1cc72edb # v4
with:
node-version: 22
cache: npm
- run: npm ci --ignore-scripts
- run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }}