From 40065cd388ce6e0f43f22524dc465f538c8b2edd Mon Sep 17 00:00:00 2001 From: d3adb5 Date: Sat, 14 Oct 2023 21:18:45 -0700 Subject: [PATCH 1/2] ci: add basic maven workflow Add a basic Maven workflow that runs unit and integration tests after building the plugin with Maven. --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..06ab188 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI + +on: + pull_request: {} + push: + branches: + - master + +jobs: + maven: + name: Maven + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + + - name: Build & Test + run: mvn -B verify From 922d8bd280163fdb4c6034c7cf19fba4b91003b6 Mon Sep 17 00:00:00 2001 From: d3adb5 Date: Sat, 14 Oct 2023 21:24:33 -0700 Subject: [PATCH 2/2] ci: setup java and cache maven deps Run the actions/setup-java action so the right Java version is used and we can cache Maven dependencies implicitly. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06ab188..6697f55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,11 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: "8" + cache: maven - name: Build & Test run: mvn -B verify