Skip to content

Commit ad36759

Browse files
committed
Added github action to run nightly checks on each branch
1 parent 81cbfd6 commit ad36759

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Daily Maven Verify on All Branches
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Runs daily at midnight UTC
6+
workflow_dispatch: # Allows manual triggering of the workflow
7+
8+
jobs:
9+
verify-branches:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0 # Fetch all branches and history
16+
17+
- name: Get list of branches
18+
id: get-branches
19+
run: |
20+
# List all branches except the HEAD and remove origin/ prefix
21+
git fetch --all
22+
git branch -r | grep -v '\->' | grep -v HEAD | grep 'origin/' | sed 's/origin\///' > branches.txt
23+
24+
- name: Show all branches to verify
25+
run: cat branches.txt
26+
27+
- name: Run Maven Verify on Each Branch
28+
run: |
29+
while read branch; do
30+
echo "Processing branch: $branch"
31+
32+
# Checkout the branch
33+
git checkout $branch
34+
35+
# Run Maven verify
36+
mvn clean verify
37+
38+
if [ $? -ne 0 ]; then
39+
echo "Maven verify failed on branch: $branch"
40+
else
41+
echo "Maven verify succeeded on branch: $branch"
42+
fi
43+
done < branches.txt

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
</properties>
1616

1717
<dependencies>
18-
<dependency
18+
<dependency>
1919
<groupId>com.microsoft.playwright</groupId>
2020
<artifactId>playwright</artifactId>
21-
<version>1.49.0</version>
21+
<version>1.48.0</version>
2222
<scope>test</scope>
2323
</dependency>
2424
<dependency>
2525
<groupId>org.junit.jupiter</groupId>
2626
<artifactId>junit-jupiter</artifactId>
27-
<version>5.11.1</version>
27+
<version>5.11.3</version>
2828
<scope>test</scope>
2929
</dependency>
3030
</dependencies>

0 commit comments

Comments
 (0)