Skip to content

Commit 6289e2b

Browse files
authored
Merge pull request #62 from getyourguide/spring-boot-starter
LTECH-405: Run tests in CI
2 parents 6f303ca + 302b925 commit 6289e2b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
12+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
13+
14+
jobs:
15+
test:
16+
name: Run Tests
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout sources
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
22+
- name: Setup Java
23+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
24+
with:
25+
distribution: temurin
26+
java-version-file: .sdkmanrc
27+
28+
- name: Run tests
29+
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
30+
with:
31+
gradle-version: wrapper
32+
arguments: |
33+
--build-cache test

0 commit comments

Comments
 (0)