File tree Expand file tree Collapse file tree 3 files changed +25
-31
lines changed Expand file tree Collapse file tree 3 files changed +25
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 16
17
+ cache : ' yarn'
18
+ - run : yarn --frozen-lockfile
19
+ - run : |
20
+ echo ::add-matcher::.github/eslint.json
21
+ yarn run eslint src test --format=compact
22
+ - run : yarn test:mocha
Original file line number Diff line number Diff line change 28
28
"node" : " >=14.5.0"
29
29
},
30
30
"scripts" : {
31
- "test" : " mkdir -p test/output && mocha -r module-alias/register 'test/**/*-test.js' test/input.js && eslint src test" ,
31
+ "test" : " yarn test:mocha && yarn test:lint" ,
32
+ "test:mocha" : " mkdir -p test/output && mocha -r module-alias/register 'test/**/*-test.js' test/input.js" ,
33
+ "test:lint" : " eslint src test" ,
32
34
"prepublishOnly" : " rm -rf dist && rollup -c" ,
33
35
"postpublish" : " git push && git push --tags" ,
34
36
"dev" : " snowpack dev"
You can’t perform that action at this time.
0 commit comments