Skip to content

Commit 90313c4

Browse files
authored
Merge pull request #9 from akarsh/develop
Create test-on-push.yml
2 parents 5946799 + 8823004 commit 90313c4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test-on-push.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: test-on-push
2+
run-name: Test on push to ${{ github.ref }} by ${{ github.actor }}
3+
on: push
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
matrix:
10+
node-version: [20.x, 21.x, 22.x]
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run tests
25+
run: npm run test

0 commit comments

Comments
 (0)