Skip to content

Commit 328f75e

Browse files
authored
Create pr-triggering.yaml
1 parent bf7844c commit 328f75e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test Before Merge
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Step 1: Check out the code from the pull request
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
# Step 2: Set up the runtime environment (e.g., Node.js, Python, etc.)
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '16'
22+
23+
# Step 3: Install dependencies
24+
- name: Install dependencies
25+
run: npm install
26+
27+
# Step 4: Run unit tests
28+
- name: Run tests
29+
run: npm test

0 commit comments

Comments
 (0)