Skip to content

Commit 4a5c650

Browse files
Added test workflow
1 parent c0bf549 commit 4a5c650

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

.github/workflows/deploy.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
- name: Install dependencies
2121
run: npm --color ci
2222

23-
- name: Run lint
24-
run: npm --color run lint
25-
2623
- name: Read version from package.json
2724
run: |
2825
VERSION=$(node -p "require('./package.json').version")

.github/workflows/test.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
run-tests:
11+
name: Run tests
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version-file: .nvmrc
23+
24+
- name: Install dependencies
25+
run: npm --color ci
26+
27+
- name: Compile
28+
run: npm --color run compile
29+
30+
- name: Run lint
31+
run: npm --color run lint

0 commit comments

Comments
 (0)