This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
build(deps-dev): bump vitest from 2.1.1 to 2.1.2 #1414
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_call: | |
pull_request: | |
branches: [main] | |
push: | |
paths-ignore: | |
- 'public/**' | |
- 'index.html' | |
- '.gitignore' | |
- 'LICENSE' | |
- 'README.md' | |
branches: [main] | |
env: | |
NODE_ENV: 'development' | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
jobs: | |
install: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [18.x] | |
pnpm-version: [9] | |
outputs: | |
os: ${{ matrix.os }} | |
node-version: ${{ matrix.node-version }} | |
pnpm-version: ${{ matrix.pnpm-version }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ matrix.pnpm-version }} | |
run_install: false | |
- run: pnpm config set store-dir .pnpm-store | |
- run: pnpm install --no-frozen-lockfile | |
tsc: | |
needs: install | |
runs-on: ${{ needs.install.outputs.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4.1.0 | |
with: | |
path: .pnpm-store | |
key: "${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}" | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ needs.install.outputs.pnpm-version }} | |
run_install: false | |
- run: pnpm config set store-dir .pnpm-store | |
- run: pnpm install --no-frozen-lockfile | |
- run: pnpm type:check | |
lint: | |
needs: install | |
runs-on: ${{ needs.install.outputs.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4.1.0 | |
with: | |
path: .pnpm-store | |
key: "${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}" | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ needs.install.outputs.pnpm-version }} | |
run_install: false | |
- run: pnpm config set store-dir .pnpm-store | |
- run: pnpm install --no-frozen-lockfile | |
- run: pnpm lint | |
test: | |
needs: install | |
runs-on: ${{ needs.install.outputs.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4.1.0 | |
with: | |
path: .pnpm-store | |
key: "${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}" | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ needs.install.outputs.pnpm-version }} | |
run_install: false | |
- run: pnpm config set store-dir .pnpm-store | |
- run: pnpm install --no-frozen-lockfile | |
- run: pnpm build | |
- run: pnpm test |