chore: update package manager #54
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 | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
cache: pnpm | |
- name: Install | |
run: pnpm install --frozen-lockfile -r | |
- name: Lint | |
run: pnpm lint | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
cache: pnpm | |
- name: Install | |
run: pnpm install --frozen-lockfile -r | |
- name: Typecheck | |
run: pnpm typecheck | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node version to ${{ matrix.node }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: pnpm | |
- name: Install | |
run: pnpm install --frozen-lockfile -r | |
- name: Build | |
run: pnpm build | |
- name: Launch containers | |
run: docker-compose up -d | |
- name: Test | |
run: pnpm test:postgres && pnpm test:sqlite && pnpm test:better_sqlite |