Skip to content

Commit

Permalink
Updated github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Nov 13, 2023
1 parent 5ea2b6c commit 428c8bf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "weekly"
interval: "daily"
30 changes: 18 additions & 12 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven

on:
workflow_dispatch:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

runs-on: self-hosted
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: maven

steps:
- uses: actions/checkout@v4
- name: Build with Maven
run: mvn clean install -U
run: mvn compile

- name: Test with Maven
run: mvn test

- name: Package with maven
run: mvn package
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.ndviet</groupId>
<artifactId>test-parent-pom</artifactId>
<version>${revision}</version>
<version>23.11.11</version>
<relativePath>../test-parent-pom/pom.xml</relativePath>
</parent>

Expand All @@ -23,6 +23,7 @@
</modules>

<properties>
<revision>1.0.0-SNAPSHOT</revision>
<github.repository>test-automation-fwk</github.repository>
</properties>

Expand Down

0 comments on commit 428c8bf

Please sign in to comment.