This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
docs: deprecation notice #407
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: Continuous tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
name: Build and test | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache pnpm modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-v2 | |
restore-keys: | | |
${{ runner.os }}- | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 7.12.2 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Lint | |
run: pnpm run lint | |
- name: Build | |
run: pnpm run build | |
- name: Run tests | |
run: pnpm run test |