Skip to content

Website

Website #24

Workflow file for this run

name: Pull Request
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- shell: bash
run: |
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ${{ env.PNPM_STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}-$(date +'%Y%m')
restore-keys: |
${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
- run: pnpm install
- run: pnpm core test