Skip to content

Commit 1db8fcd

Browse files
committed
feat(tests): add GitHub Actions workflow for running tests
1 parent 4b1e3e1 commit 1db8fcd

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on:
2+
push:
3+
branches:
4+
- '**'
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
8+
name: Tests
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up JDK 25
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: "temurin"
19+
java-version: 25
20+
overwrite-settings: false
21+
22+
- name: Cache Maven packages
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.m2/repository
26+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: ${{ runner.os }}-maven
28+
29+
- name: Prepare test properties
30+
run: |
31+
mkdir -p src/test/resources
32+
echo ${{ secrets.APPLICATION_TEST_PROPERTIES }} | base64 -d > src/test/resources/application-test.properties
33+
echo "spring.sql.init.mode=never" >> src/test/resources/application-test.properties
34+
35+
- name: Run unit and integration tests
36+
run: ./mvnw clean verify

0 commit comments

Comments
 (0)