Skip to content

Commit 27f7e1f

Browse files
committed
Added github actions
1 parent 96fcac3 commit 27f7e1f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Playwright Tests
2+
3+
# Trigger the workflow on every push to any branch
4+
on:
5+
push:
6+
branches:
7+
- '**' # Run on every branch for every commit
8+
pull_request:
9+
branches:
10+
- '**' # Run on every pull request for any branch
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
# Step 1: Check out the repository code
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
# Step 2: Set up JDK 17 (adjust if you're using a different version)
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v3
24+
with:
25+
java-version: '17'
26+
distribution: 'adopt'
27+
28+
# Step 3: Cache Maven dependencies to speed up future builds
29+
- name: Cache Maven dependencies
30+
uses: actions/cache@v3
31+
with:
32+
path: ~/.m2
33+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: |
35+
${{ runner.os }}-maven
36+
37+
# Step 4: Run Maven to execute Playwright tests
38+
- name: Run Playwright Tests
39+
run: mvn verify

0 commit comments

Comments
 (0)