Skip to content

release: version packages #239

release: version packages

release: version packages #239

Workflow file for this run

name: Lint & Test
on:
push:
pull_request:
types: [opened, synchronize, reopened]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
lint-and-test:
name: Lint & Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
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
run: |
pnpm install
- name: Lint
run: pnpm lint
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- name: Typecheck
run: pnpm typecheck
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- name: Build
run: pnpm build
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- name: Test
run: pnpm test
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- name: Check format
run: pnpm format:check
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}