Skip to content

Commit

Permalink
tweak: add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcserv committed Oct 16, 2024
1 parent 2ffd5b2 commit eab02ea
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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

0 comments on commit eab02ea

Please sign in to comment.