feat: update test stack #1210
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR checker | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
push: | |
branches: | |
- main | |
env: | |
lockfile: pnpm-lock.yaml | |
node_version: "18" | |
pnpm_version: "8" | |
# This is to avoid running multiple actions when a PR is updated repeatedly. See | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
name: Install PNPM | |
id: pnpm-install | |
with: | |
version: ${{ env.pnpm_version }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node_version }} | |
cache: pnpm | |
cache-dependency-path: ${{ env.lockfile }} | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint:ci | |
- name: Types | |
run: pnpm run types:check | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
name: Install PNPM | |
id: pnpm-install | |
with: | |
version: ${{ env.pnpm_version }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node_version }} | |
cache: pnpm | |
cache-dependency-path: ${{ env.lockfile }} | |
- name: Install dependencies | |
run: pnpm install | |
- name: Tests | |
run: pnpm run test |