Skip to content

Commit a71372f

Browse files
committed
ci: add test workflow
1 parent 7bdc8af commit a71372f

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
name: Test build
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: npm i
14+
- run: npm run build
15+
16+
lint:
17+
name: Check linting
18+
runs-on: ubuntu-20.04
19+
steps:
20+
- uses: actions/checkout@v2
21+
- run: npm i
22+
- run: npm run lint

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"build": "ncc build src/main.ts --minify --out lib",
88
"watch": "ncc build src/main.ts --watch --out lib",
9+
"lint": "eslint --ext .ts src",
910
"lint:fix": "eslint --ext .ts --fix src",
1011
"all-contributors-badge": "ts-node scripts/all-contributors-badge",
1112
"changelog": "ts-node scripts/changelog.ts",

0 commit comments

Comments
 (0)