Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7dd8f51

Browse files
committed
add PR workflow
1 parent e42fcb1 commit 7dd8f51

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

‎.github/workflows/pr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR
2+
3+
on: [ pull_request ]
4+
5+
jobs:
6+
pr:
7+
name: PR
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: '18'
14+
cache: 'npm'
15+
- run: npm ci
16+
- run: npm run lint:js
17+
- run: npm run test:types
18+
- run: npm run test:ci

‎package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"pretest": "npm run test:clean && npm run lint:js",
99
"test:clean": "rimraf ./coverage",
1010
"test": "cross-env NODE_ENV=test jest --coverage",
11+
"test:ci": "cross-env NODE_ENV=test jest",
12+
"test:types": "tsc --noEmit",
1113
"test:watch": "cross-env NODE_ENV=test jest --watchAll",
1214
"build:esm": "cross-env BABEL_ENV=esm babel src -d dist/esm",
1315
"build:cjs": "cross-env BABEL_ENV=cjs babel src -d dist/cjs",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /