Skip to content

Commit c3d1252

Browse files
authored
Refactor build.yml for branch support and JDK update
Updated the build workflow to support both 'master' and 'main' branches, changed JDK version to 24, and modified the setup-java action version.
1 parent 9f17131 commit c3d1252

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build
2+
3+
# quando
4+
on:
5+
push:
6+
branches: [ "master", "main" ]
7+
pull_request:
8+
branches: [ "master", "main" ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
# https://github.com/marketplace
17+
- name: Set up JDK
18+
uses: actions/setup-java@v5
19+
with:
20+
java-version: '24'
21+
distribution: 'openjdk'
22+
cache: maven
23+
- name: Install curl
24+
run: sudo apt install curl
25+
- name: Build with Maven
26+
# run: |
27+
# mvn package
28+
# curl google.com
29+
run: mvn package && curl google.com
30+
31+
#- name: Update dependency graph
32+
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

0 commit comments

Comments
 (0)