Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit b271a5a

Browse files
committed
Added daily test GitHub action
1 parent c75c838 commit b271a5a

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
env:
5757
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
5858

59-
6059
- name: Install dependencies
6160
run: mvn clean install -DskipTests
6261

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Daily Test
2+
3+
on:
4+
schedule:
5+
- cron: '*/10 * * * *' # Runs every 10 minutes
6+
7+
jobs:
8+
test:
9+
name: Test
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
java-version: ["8", "11", "17", "18", "19", "20"]
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Test Java Runtime
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: ${{ matrix.java-version }}
25+
distribution: zulu
26+
architecture: x64
27+
28+
- name: Cache Maven dependencies for tests
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.m2/repository
32+
key: ${{ runner.os }}-maven-${{ matrix.java-version }}-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/src/**') }}
33+
restore-keys: |
34+
${{ runner.os }}-maven-
35+
36+
- name: Run test suite
37+
env:
38+
CORBADO_PROJECT_ID: ${{ secrets.CORBADO_PROJECT_ID }}
39+
CORBADO_API_SECRET: ${{ secrets.CORBADO_API_SECRET }}
40+
CORBADO_FRONTEND_API: ${{ vars.CORBADO_FRONTEND_API }}
41+
CORBADO_BACKEND_API: ${{ vars.CORBADO_BACKEND_API }}
42+
run: mvn --batch-mode --update-snapshots verify -DskipInstall

0 commit comments

Comments
 (0)