From 01de9ce450be11404b474f4b0bd7bcedef825cde Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Mon, 24 Aug 2020 19:15:52 +0800 Subject: [PATCH 1/4] add github actions for a fast view of pr succeed/not. travis-ci is toooo slow. --- .github/dependabot.yml | 12 ++++++++++++ .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..0df1a8b49a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "daily" + target-branch: "master" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "master" + target-branch: "develop" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..7cd1b5799a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Java CI + +on: [ push ] + +jobs: + build: + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + matrix: + os: [ ubuntu-latest , windows-latest , macos-latest ] + java: [ 11 ] + experimental: [ false ] + + steps: + - uses: actions/checkout@v2.3.2 + - uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1.4.0 + with: + java-version: ${{ matrix.java }} + - name: Build with mvnw + run: | + chmod 777 ./mvnw + ./mvnw clean install From 2093f6c82a8f60d5e9ebc453ea77e8530d2badd4 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 12 Sep 2020 12:13:04 +0200 Subject: [PATCH 2/4] [ci] dependabot: don't open PRs for maven dependencies We might enable this for PMD 7 later --- .github/dependabot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0df1a8b49a..b11b4799b5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,6 +5,7 @@ updates: schedule: interval: "daily" target-branch: "master" + open-pull-requests-limit: 0 - package-ecosystem: "github-actions" directory: "/" schedule: From b247d616d971178ecf9d528309959db329a68652 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 12 Sep 2020 12:13:28 +0200 Subject: [PATCH 3/4] [ci] github actions: Build on push and pull requests --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cd1b5799a..c4c6346b0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Java CI -on: [ push ] +on: [push, pull_request] jobs: build: @@ -26,5 +26,4 @@ jobs: java-version: ${{ matrix.java }} - name: Build with mvnw run: | - chmod 777 ./mvnw ./mvnw clean install From c3b5e1a5c1c79b66f3c7e85ff4ac34a0efce0138 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 12 Sep 2020 12:13:44 +0200 Subject: [PATCH 4/4] [doc] Update release notes, refs #2735 --- docs/pages/release_notes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 472047cab8..9b277d38cb 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -176,6 +176,7 @@ are deprecated as internal API. * [#2699](https://github.com/pmd/pmd/pull/2699): \[java] ProperCloneImplementation not valid for final class - [Mykhailo Palahuta](https://github.com/Drofff) * [#2700](https://github.com/pmd/pmd/pull/2700): \[java] Fix OnlyOneReturn code example - [Jan-Lukas Else](https://github.com/jlelse) * [#2722](https://github.com/pmd/pmd/pull/2722): \[doc] \[java] ImmutableField: extend description, fixes #2108 - [Mateusz Stefanski](https://github.com/mateusz-stefanski) +* [#2735](https://github.com/pmd/pmd/pull/2735): \[ci] Add github actions for a fast view of pr succeed/not - [XenoAmess](https://github.com/XenoAmess) {% endtocmaker %}