Commit 077d4c4
Changed files (4)
.github/workflows/check.yml
@@ -0,0 +1,15 @@
+name: Check
+
+on: [push, pull_request]
+
+jobs:
+ coverage:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - run: npm i
+ - run: npm run coverage
+ timeout-minutes: 1
+ env:
+ FORCE_COLOR: 3
.github/workflows/test.yml
@@ -1,10 +1,6 @@
name: Test
-on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
+on: [push, pull_request]
jobs:
test:
.nycrc
@@ -0,0 +1,9 @@
+{
+ "reporter": [
+ "html",
+ "text"
+ ],
+ "lines": 98,
+ "branches": "90",
+ "statements": "98"
+}
package.json
@@ -38,7 +38,7 @@
"fmt": "prettier --write .",
"build": "tsc",
"test": "tsc && uvu test -i fixtures",
- "coverage": "c8 --reporter=html npm test"
+ "coverage": "c8 npm test"
},
"dependencies": {
"@types/fs-extra": "^9.0.13",