Skip to content

Commit 9311690

Browse files
Copilotgoransle
andcommitted
Add GitHub Actions workflow to run tests on PRs
Co-authored-by: goransle <7478772+goransle@users.noreply.github.com>
1 parent 1d5517a commit 9311690

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Setup config.json
26+
run: echo '{"token":"","port":"90","repo":"highcharts/highcharts"}' > config.json
27+
28+
- name: Run tests
29+
run: npm test

0 commit comments

Comments
 (0)