Skip to content

tweak: add github workflows #1

tweak: add github workflows

tweak: add github workflows #1

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Set up Node 18.x
uses: actions/setup-node@v1
with:
node-version: 20.x
- uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: pnpm i
- name: Build
run: pnpm build
- name: Run tests
run: pnpm test
- name: Run linter
run: pnpm lint