Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add .github/workflows/verify.yml #1

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: verify

on:
push:
pull_request:

jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Run yarn install
run: yarn install --frozen-lockfile

- name: Run verify
run: yarn verify
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"scripts": {
"build": "tsup",
"lint": "eslint ." ,
"typecheck": "tsc -p tsconfig.json" ,
"typecheck": "rm -rf _tsout && tsc -p tsconfig.lib.json && tsc -p tsconfig.test.json && tsc -p tsconfig.json" ,
"verify": "yarn build && yarn test && yarn lint && yarn typecheck" ,
"dev": "tsup --watch",
"test": "jest",
"clean": "rm -rf dist node_modules"
"clean": "rm -rf dist node_modules _tsout"
},
"main": "dist/index.js",
"types": "./dist/index.d.ts",
Expand Down