Skip to content

Revert "Migrate to vitest" #1966

Revert "Migrate to vitest"

Revert "Migrate to vitest" #1966

Workflow file for this run

---
name: crate-gc-admin
on:
- pull_request
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
lint-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
name: Setup Node
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Restore ESLint Cache
uses: actions/cache@v4
with:
path: .eslintcache
key: eslint-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
restore-keys: |
eslint-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-
eslint-${{ runner.os }}-
- name: Lint and Build
# Running these in one job saves VM startup time
run: |
pnpm lint --cache --cache-location .eslintcache
pnpm build
pnpm build-lib
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run component tests
run: pnpm test