chore(deps): update dependency @types/node to v18.19.75 #590
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: Unit Test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14, 16] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: | | |
echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
${{ runner.os }}- | |
- name: Install project dependencies | |
run: yarn --prefer-offline | |
- name: Type Check | |
run: yarn typecheck | |
- name: Test | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
run: yarn test --coverage | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
- name: Build Test | |
run: yarn build |