Skip to content

chore: remove .only #1622

chore: remove .only

chore: remove .only #1622

Workflow file for this run

name: Build and test
on: [push, pull_request]
env:
CI: true
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [20]
os: [ubuntu-latest, macOS-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
id: pnpm-install
uses: pnpm/action-setup@v2
with:
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies and build
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build --force
- name: Lint
run: pnpm run lint
- name: Test
run: pnpm run test:ci --force