Skip to content

Commit 6d48504

Browse files
committed
Updated github workflow
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 5ea2b6c commit 6d48504

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

.github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ updates:
33
- package-ecosystem: "maven"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "daily"

.github/workflows/maven.yml

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
91
name: Java CI with Maven
102

113
on:
124
workflow_dispatch:
5+
push:
6+
pull_request:
137

148
jobs:
159
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
1613

17-
runs-on: self-hosted
14+
- name: Set up JDK 11
15+
uses: actions/setup-java@v2
16+
with:
17+
java-version: '11'
18+
distribution: 'temurin'
19+
cache: maven
1820

19-
steps:
20-
- uses: actions/checkout@v4
2121
- name: Build with Maven
22-
run: mvn clean install -U
22+
run: mvn compile
23+
24+
- name: Test with Maven
25+
run: mvn test
26+
27+
- name: Package with maven
28+
run: mvn package

pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.ndviet</groupId>
99
<artifactId>test-parent-pom</artifactId>
10-
<version>${revision}</version>
10+
<version>23.11.11</version>
1111
<relativePath>../test-parent-pom/pom.xml</relativePath>
1212
</parent>
1313

@@ -23,6 +23,7 @@
2323
</modules>
2424

2525
<properties>
26+
<revision>1.0.0-SNAPSHOT</revision>
2627
<github.repository>test-automation-fwk</github.repository>
2728
</properties>
2829

0 commit comments

Comments
 (0)