From 73a45f4ceafe2c89da1103179e872f8a73206bed Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 5 Sep 2022 09:54:19 +0100 Subject: [PATCH] Add github CI --- .github/workflows/ant.yml | 23 +++++++++++++++++++++++ .github/workflows/maven.yml | 23 +++++++++++++++++++++++ .travis.yml | 5 ----- build.xml | 2 +- pom.xml | 2 +- 5 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/ant.yml create mode 100644 .github/workflows/maven.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml new file mode 100644 index 0000000..5ad5acd --- /dev/null +++ b/.github/workflows/ant.yml @@ -0,0 +1,23 @@ +name: Java Ant CI + +on: [push] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Ant + run: ant -noinput -buildfile build.xml dist + - name: Run tests + timeout-minutes: 10 + run: ant -noinput -buildfile build.xml test \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..26fe095 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,23 @@ +name: Java Maven CI + +on: [push] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Maven + run: mvn compile + - name: Run tests with Maven + timeout-minutes: 10 + run: mvn test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3340671..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: java -jdk: - - openjdk9 - - openjdk10 - - openjdk11 diff --git a/build.xml b/build.xml index 33e2b33..ffcb391 100644 --- a/build.xml +++ b/build.xml @@ -40,7 +40,7 @@ - + diff --git a/pom.xml b/pom.xml index 50adc6f..fa1b1b6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.github.multiformats java-multiaddr - v1.4.1 + v1.4.2 multiaddr https://github.com/multiformats/java-multiaddr