Skip to content

Commit c1bd648

Browse files
committed
Autoformat
1 parent 0f0f8d1 commit c1bd648

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

.github/workflows/docker-image.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Docker Image CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
jobs:
1010

@@ -13,8 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
- name: Build the Docker image
20-
run: docker buildx build . --file Dockerfile --tag miguno/java-docker-build-tutorial:$(date +%s)
16+
- uses: actions/checkout@v4
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Build the Docker image
20+
run: docker buildx build . --file Dockerfile --tag miguno/java-docker-build-tutorial:$(date +%s)

.github/workflows/maven.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,38 @@ name: Java CI with Maven
1010

1111
on:
1212
push:
13-
branches: [ "main" ]
13+
branches: ["main"]
1414
pull_request:
15-
branches: [ "main" ]
15+
branches: ["main"]
1616

1717
jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v4
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
26-
- name: Set up JDK 23
27-
# TODO: Switch back to actions/setup-java@v4 once they support JDK 23 for temurin
28-
#uses: actions/setup-java@v4 # https://github.com/actions/setup-java
29-
#with:
30-
# java-version: '23'
31-
# distribution: 'temurin'
32-
# cache: maven
33-
uses: oracle-actions/setup-java@v1 # https://github.com/oracle-actions/setup-java
34-
with:
35-
website: jdk.java.net
36-
release: 23
37-
38-
- name: Print Java version
39-
run: java -version
40-
41-
- name: Verify and Package with Maven
42-
run: ./mvnw --batch-mode --file pom.xml verify package
43-
44-
# Upload the full dependency graph to GitHub to improve the quality of
45-
# Dependabot alerts this repository can receive.
46-
- name: Submit Dependency Snapshot
47-
uses: advanced-security/maven-dependency-submission-action@v4
22+
- uses: actions/checkout@v4
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Set up JDK 23
27+
# TODO: Switch back to actions/setup-java@v4 once they support JDK 23 for temurin
28+
#uses: actions/setup-java@v4 # https://github.com/actions/setup-java
29+
#with:
30+
# java-version: '23'
31+
# distribution: 'temurin'
32+
# cache: maven
33+
uses: oracle-actions/setup-java@v1 # https://github.com/oracle-actions/setup-java
34+
with:
35+
website: jdk.java.net
36+
release: 23
37+
38+
- name: Print Java version
39+
run: java -version
40+
41+
- name: Verify and Package with Maven
42+
run: ./mvnw --batch-mode --file pom.xml verify package
43+
44+
# Upload the full dependency graph to GitHub to improve the quality of
45+
# Dependabot alerts this repository can receive.
46+
- name: Submit Dependency Snapshot
47+
uses: advanced-security/maven-dependency-submission-action@v4

0 commit comments

Comments
 (0)