update types config #46
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] | |
jobs: | |
default: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: ['lts/*', '*'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache pnpm modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 6 | |
run_install: | | |
- recursive: true | |
- args: [--frozen-lockfile, --strict-peer-dependencies] | |
- name: Lint Source | |
run: pnpm run lint --if-present | |
- name: Build Source | |
run: pnpm run build --if-present | |
- name: Run Tests | |
run: pnpm run test --if-present |