Skip to content

Commit 3832873

Browse files
committed
ci: added check workflow and removed old one
1 parent 14db09a commit 3832873

File tree

3 files changed

+51
-59
lines changed

3 files changed

+51
-59
lines changed

.github/workflows/check.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'renovate/**'
8+
paths-ignore:
9+
- '**.md'
10+
- '.gitignore'
11+
- 'assets/**'
12+
- '.github/**'
13+
- '!.github/workflows/check.yml'
14+
15+
pull_request:
16+
branches:
17+
- main
18+
paths-ignore:
19+
- '**.md'
20+
- '.gitignore'
21+
- 'assets/**'
22+
- '.github/**'
23+
- '!.github/workflows/check.yml'
24+
25+
workflow_dispatch:
26+
workflow_call:
27+
28+
jobs:
29+
lint-and-test:
30+
name: Lint & Test
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
36+
37+
- name: Setup Node.js
38+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
39+
with:
40+
node-version: 18
41+
cache: npm
42+
43+
- name: Install Dependencies
44+
run: npm install
45+
46+
- name: Lint
47+
run: npm run lint
48+
49+
- name: Test
50+
run: npm run test

.github/workflows/main.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lint": "eslint src/** test/**",
1212
"test": "jest test",
1313
"test:watch": "npm run test -- --watch",
14-
"prepublishOnly": "npm run build"
14+
"prepublishOnly": "npm run lint && npm run test && npm run build"
1515
},
1616
"devDependencies": {
1717
"@rollup/plugin-node-resolve": "^11.0.0",

0 commit comments

Comments
 (0)