Skip to content

Commit 6225560

Browse files
Added GitHub Action
1 parent 9ff978d commit 6225560

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run all tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v2
17+
18+
- name: Use java ${{ matrix.java-version }}
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: 17
22+
distribution: 'adopt'
23+
24+
- name: Install dependencies
25+
run: mvn install
26+
27+
- name: Test code
28+
run: mvn exec:java -Dexec.mainClass="com.applitools.quickstarts.AcmeBankTests" -Dexec.classpathScope=test
29+
env:
30+
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }}

0 commit comments

Comments
 (0)