Skip to content

Update GitHub actions #334

Update GitHub actions

Update GitHub actions #334

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 20
- uses: pnpm/[email protected]
name: Install pnpm
with:
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/[email protected]
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install -r --ignore-scripts
- name: Check formatting (Prettier)
run: pnpx prettier -c .
- name: Generate TypeScript types
run: pnpm postbuild
- name: Run type checks (TypeScript)
run: pnpm tsc
- name: Run linter (ESLint)
run: pnpm lint