From 755d8babc0fa0b1f51a1ebad848918ffdfe6d89e Mon Sep 17 00:00:00 2001 From: av1m <36456709+av1m@users.noreply.github.com> Date: Fri, 17 Apr 2020 19:45:11 +0200 Subject: [PATCH 1/5] add github actions for maven --- .github/workflows/maven.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..760b5551 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,25 @@ +name: Java CI with Maven + +on: + push: + branches: [master, dev] + pull_request: + branches: [master, dev] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Verify maven + run: mvn -B clean verify --file pom.xml From 053e4dd8ca8a282d0582465720517b684beeaf09 Mon Sep 17 00:00:00 2001 From: av1m <36456709+av1m@users.noreply.github.com> Date: Fri, 24 Apr 2020 09:40:24 +0200 Subject: [PATCH 2/5] Update maven.yml --- .github/workflows/maven.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 760b5551..1a77b84b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -2,9 +2,13 @@ name: Java CI with Maven on: push: - branches: [master, dev] + branches: + - "*" + - "*/*" + paths-ignore: + - "doc/**" pull_request: - branches: [master, dev] + branches: [master] jobs: build: @@ -12,13 +16,12 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK 13 uses: actions/setup-java@v1 with: - java-version: 11 + java-version: 13 - name: Build with Maven run: mvn -B package --file pom.xml - name: Verify maven From 8cd665ddc4c00346a2781cbef3ee4776bb5e3495 Mon Sep 17 00:00:00 2001 From: av1m <36456709+av1m@users.noreply.github.com> Date: Wed, 29 Apr 2020 03:02:55 +0200 Subject: [PATCH 3/5] modify to jdk11 and change path --- .github/workflows/maven.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1a77b84b..aabaede2 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,10 +3,11 @@ name: Java CI with Maven on: push: branches: - - "*" - - "*/*" - paths-ignore: - - "doc/**" + - '*' + - '*/*' + paths: + - 'src/**' + - '**.java' pull_request: branches: [master] @@ -16,13 +17,14 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] + steps: - uses: actions/checkout@v2 - - name: Set up JDK 13 + - name: Set up JDK 11 uses: actions/setup-java@v1 with: - java-version: 13 + java-version: 11 - name: Build with Maven run: mvn -B package --file pom.xml - name: Verify maven - run: mvn -B clean verify --file pom.xml + run: mvn -B clean verify --file pom.xml \ No newline at end of file From 819f32f887bf76c4bf4681c63d25a6c132e2b74b Mon Sep 17 00:00:00 2001 From: av1m <36456709+av1m@users.noreply.github.com> Date: Thu, 30 Apr 2020 11:49:14 +0200 Subject: [PATCH 4/5] delete windows and redundant build --- .github/workflows/maven.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index aabaede2..37513480 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,7 +16,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] steps: - uses: actions/checkout@v2 @@ -24,7 +24,5 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 - - name: Build with Maven - run: mvn -B package --file pom.xml - name: Verify maven run: mvn -B clean verify --file pom.xml \ No newline at end of file From 9374fce37fc495e97ca7620c4001807bacb3d344 Mon Sep 17 00:00:00 2001 From: av1m <36456709+av1m@users.noreply.github.com> Date: Sat, 2 May 2020 22:14:56 +0200 Subject: [PATCH 5/5] remove clean in github action --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 37513480..c5898474 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -25,4 +25,4 @@ jobs: with: java-version: 11 - name: Verify maven - run: mvn -B clean verify --file pom.xml \ No newline at end of file + run: mvn -B verify --file pom.xml \ No newline at end of file