chore(deps): bump actions/setup-node from 3 to 4 #138
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: CI | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src**' | |
- '.github/workflows/ci.yml' | |
workflow_dispatch: | |
jobs: | |
check: | |
name: Typecheck | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 16 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- name: Setup node ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Typecheck | |
uses: gozala/[email protected] | |
with: | |
project: ./tsconfig.json | |
test-node: | |
name: Test Node | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: | |
- 16 | |
os: | |
- ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- name: Setup node ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Test | |
run: pnpm run test:node | |
test-web: | |
name: Test Web | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 16 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- name: Setup node ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Test | |
run: yarn run test:web |