From 6b24d07335dc8fa5360eb25c2b63dcc7a5b191fa Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller <rene.gassmoeller@mailbox.org> Date: Wed, 31 Jan 2024 09:35:29 -0500 Subject: [PATCH 1/5] Add github workflow --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/linux.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/linux.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..dfd0e308 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 00000000..c32d7306 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,31 @@ +name: Java CI with Gradle + +# execute on any push and pull request +on: + push: + pull_request: + +# only execute one test simultaneously +# terminate running tests if a new push happens +concurrency: + group: ${{ github.actor }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + with: + arguments: test From 02055989fe8cf2b1621c5fb76b4d5b43c39570d4 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller <rene.gassmoeller@mailbox.org> Date: Wed, 31 Jan 2024 09:50:35 -0500 Subject: [PATCH 2/5] Add test --- .github/workflows/linux.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c32d7306..5171303e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -26,6 +26,10 @@ jobs: java-version: '11' distribution: 'temurin' - name: Build with Gradle + uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + with: + arguments: eB + - name: Test with Gradle uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 with: arguments: test From 00a4a4ff060cf1e4ec3537eae60d147fdf1869e5 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller <rene.gassmoeller@mailbox.org> Date: Wed, 31 Jan 2024 09:58:01 -0500 Subject: [PATCH 3/5] Rename workflow file. Add badge. --- .github/workflows/{linux.yml => gradle.yml} | 0 README.md | 1 + 2 files changed, 1 insertion(+) rename .github/workflows/{linux.yml => gradle.yml} (100%) diff --git a/.github/workflows/linux.yml b/.github/workflows/gradle.yml similarity index 100% rename from .github/workflows/linux.yml rename to .github/workflows/gradle.yml diff --git a/README.md b/README.md index 4130cf42..d719a470 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Maven Central](https://img.shields.io/maven-central/v/edu.sc.seis/TauP.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22edu.sc.seis%22%20AND%20a:%22TauP%22) [![javadoc](https://javadoc.io/badge2/edu.sc.seis/TauP/javadoc.svg)](https://javadoc.io/doc/edu.sc.seis/TauP) [![taup](https://snapcraft.io/taup/badge.svg)](https://snapcraft.io/taup) +[![Tests](https://github.com/crotwell/TauP/actions/workflows/gradle.yml/badge.svg)](https://github.com/crotwell/TauP/actions/workflows/gradle.yml) From 17aa86b6deb85e832a9f45020dc24874fd4a7b0d Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller <rene.gassmoeller@mailbox.org> Date: Wed, 31 Jan 2024 10:02:45 -0500 Subject: [PATCH 4/5] Test Java 17 --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5171303e..1add3c8f 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -23,7 +23,7 @@ jobs: - name: Set up JDK 11 uses: actions/setup-java@v3 with: - java-version: '11' + java-version: '17' distribution: 'temurin' - name: Build with Gradle uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 From 17d5300e7fd8a6f5869cab54d692ed85d3a940b1 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller <rene.gassmoeller@mailbox.org> Date: Wed, 31 Jan 2024 10:04:58 -0500 Subject: [PATCH 5/5] Revert to Java 11 --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1add3c8f..5171303e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -23,7 +23,7 @@ jobs: - name: Set up JDK 11 uses: actions/setup-java@v3 with: - java-version: '17' + java-version: '11' distribution: 'temurin' - name: Build with Gradle uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0