Skip to content

Commit 5845e40

Browse files
Merge pull request #16 from hashbangcode/15_pr_tests_MR_main
15: Added unit testing to PR process.
2 parents 82913b1 + 91d5686 commit 5845e40

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/prtest.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Four PR Test Workflow
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- master
8+
- stage
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out repository code.
15+
uses: actions/checkout@v4
16+
17+
- name: Install Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
cache: npm
21+
node-version-file: '.nvmrc'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run unit tests
27+
run: npm run test

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.11.1

0 commit comments

Comments
 (0)