We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4fa885 commit 36f329dCopy full SHA for 36f329d
.github/workflows/java-build.yml
@@ -2,7 +2,9 @@ name: Java Build
2
3
on:
4
push:
5
+ branches: [ "main" ]
6
pull_request:
7
8
9
jobs:
10
build:
@@ -12,12 +14,15 @@ jobs:
12
14
- name: Checkout repository
13
15
uses: actions/checkout@v3
16
- - name: Set up Java
17
+ - name: Set up Java 17
18
uses: actions/setup-java@v3
19
with:
- java-version: "17"
- distribution: "temurin"
20
+ distribution: 'temurin'
21
+ java-version: '17'
22
23
- name: Compile Java source files
- run: |
- javac *.java
24
+ run: javac $(find src -name "*.java")
25
+
26
+ - name: Run main class (optional)
27
+ if: always()
28
+ run: echo "Build complete"
0 commit comments