Skip to content

Commit 1bf64ee

Browse files
authored
ci: Add github action to run tests on pull request
1 parent f126e31 commit 1bf64ee

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/on-pull-request.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow builds and runs the tests on pull requests
2+
3+
name: Run Tests
4+
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the master branch
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
# The type of runner that the job will run on
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
# Run npm install, this also runs the tests (as part of prepare)
21+
- name: Install and run tests
22+
run: npm install

0 commit comments

Comments
 (0)