|
1 | | -name: Build |
| 1 | +name: CI |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
12 | 12 | workflow_dispatch: |
13 | 13 |
|
14 | 14 | jobs: |
| 15 | + |
| 16 | + test: |
| 17 | + name: "Tests" |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - name: Checkout |
| 21 | + uses: actions/checkout@v5 |
| 22 | + with: |
| 23 | + submodules: recursive |
| 24 | + fetch-depth: 0 # needed for versioning |
| 25 | + - name: Set up Java |
| 26 | + uses: actions/setup-java@v5 |
| 27 | + with: |
| 28 | + distribution: 'temurin' |
| 29 | + java-version: 21 |
| 30 | + cache: 'gradle' |
| 31 | + - name: Tests |
| 32 | + run: ./gradlew spotlessCheck test --stacktrace |
| 33 | + |
15 | 34 | build: |
| 35 | + name: "Build" |
16 | 36 | runs-on: ubuntu-latest |
17 | 37 | steps: |
18 | | - - uses: actions/checkout@v4 |
| 38 | + - name: Checkout |
| 39 | + uses: actions/checkout@v5 |
19 | 40 | with: |
20 | 41 | submodules: recursive |
21 | 42 | fetch-depth: 0 # needed for versioning |
22 | 43 | - name: Set up Java |
23 | | - uses: actions/setup-java@v4 |
| 44 | + uses: actions/setup-java@v5 |
24 | 45 | with: |
25 | 46 | distribution: 'temurin' |
26 | 47 | java-version: 21 |
27 | 48 | cache: 'gradle' |
28 | 49 | - name: Build with Gradle |
29 | | - run: ./gradlew spotlessCheck test release --stacktrace |
30 | | - - uses: actions/upload-artifact@v4 |
| 50 | + run: ./gradlew release --stacktrace |
| 51 | + - name: Upload Artifacts |
| 52 | + uses: actions/upload-artifact@v4 |
31 | 53 | with: |
32 | 54 | name: artifacts |
33 | 55 | path: build/release/* |
34 | 56 |
|
35 | 57 | docker: |
| 58 | + name: Deploy Docker Build |
36 | 59 | runs-on: ubuntu-latest |
37 | 60 | needs: build |
38 | 61 | steps: |
39 | | - - uses: actions/checkout@v4 |
| 62 | + - name: Checkout |
| 63 | + uses: actions/checkout@v5 |
40 | 64 | with: |
41 | 65 | submodules: recursive |
42 | 66 | fetch-depth: 0 |
43 | | - - uses: actions/download-artifact@v4 |
| 67 | + - name: Download Artifacts |
| 68 | + uses: actions/download-artifact@v5 |
44 | 69 | with: |
45 | 70 | name: artifacts |
46 | 71 | path: build/release |
|
52 | 77 | password: ${{ secrets.GITHUB_TOKEN }} |
53 | 78 | - name: Set up Docker Buildx |
54 | 79 | uses: docker/setup-buildx-action@v3 |
55 | | - - name: Docker metadata |
| 80 | + - name: Docker Metadata |
56 | 81 | id: metadata |
57 | 82 | uses: docker/metadata-action@v5 |
58 | 83 | with: |
|
66 | 91 | type=match,pattern=v\d+,group=0,enable=${{ startsWith(github.ref, 'refs/tags/') }} |
67 | 92 | flavor: | |
68 | 93 | latest=false |
69 | | - - name: Build and push |
| 94 | + - name: Build and Push |
70 | 95 | uses: docker/build-push-action@v5 |
71 | 96 | with: |
72 | 97 | context: . |
|
0 commit comments