Skip to content

Commit 751176c

Browse files
committed
Added github action
1 parent 4750a39 commit 751176c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#This job tests changes made in master branch against PRs.
2+
3+
name: Review changes from PRs
4+
run-name: ${{ github.actor }} has created/updated a PR
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
version: [ 14, 16, 18 ]
14+
os: [ macos-latest, windows-latest, ubuntu-latest ]
15+
runs-on: ${{ matrix.os }}
16+
name: CucumberJS repo ${{ matrix.version }} - ${{ matrix.os }} Sample
17+
env:
18+
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
19+
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.version }}
26+
27+
- name: Setup environment for testing
28+
run: npm install
29+
30+
- name: Run sample tests
31+
run: npm run sample-test
32+
33+
- name: Run local tests
34+
run: npm run sample-local-test

0 commit comments

Comments
 (0)