diff --git a/.travis/build.sh b/.github/build.sh
similarity index 61%
rename from .travis/build.sh
rename to .github/build.sh
index e939b6c..7da4262 100755
--- a/.travis/build.sh
+++ b/.github/build.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/travis-build.sh
-sh travis-build.sh
+curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh
+sh ci-build.sh
diff --git a/.github/setup.sh b/.github/setup.sh
new file mode 100755
index 0000000..f359bbe
--- /dev/null
+++ b/.github/setup.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-setup-github-actions.sh
+sh ci-setup-github-actions.sh
diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml
new file mode 100644
index 0000000..45b6b5e
--- /dev/null
+++ b/.github/workflows/build-main.yml
@@ -0,0 +1,42 @@
+name: build
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Cache m2 folder
+ uses: actions/cache@v2
+ env:
+ cache-name: cache-m2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-build-${{ env.cache-name }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+ ${{ runner.os }}-
+
+ - name: Set up JDK 8
+ uses: actions/setup-java@v2
+ with:
+ java-version: '8'
+ distribution: 'zulu'
+ - name: Set up CI environment
+ run: .github/setup.sh
+ - name: Execute the build
+ run: .github/build.sh
+ env:
+ GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
+ GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
+ MAVEN_USER: ${{ secrets.MAVEN_USER }}
+ MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
+ OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
+ SIGNING_ASC: ${{ secrets.SIGNING_ASC }}
diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml
new file mode 100644
index 0000000..92a0192
--- /dev/null
+++ b/.github/workflows/build-pr.yml
@@ -0,0 +1,35 @@
+name: build PR
+
+on:
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Cache m2 folder
+ uses: actions/cache@v2
+ env:
+ cache-name: cache-m2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-build-${{ env.cache-name }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+ ${{ runner.os }}-
+
+ - name: Set up JDK 8
+ uses: actions/setup-java@v2
+ with:
+ java-version: '8'
+ distribution: 'zulu'
+ - name: Set up CI environment
+ run: .github/setup.sh
+ - name: Execute the build
+ run: .github/build.sh
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index d5318aa..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-language: java
-jdk: openjdk8
-branches:
- only:
- - master
- - "/.*-[0-9]+\\..*/"
-install: true
-script: ".travis/build.sh"
-cache:
- directories:
- - "~/.m2/repository"
-env:
- global:
- - secure: aH3kWBQtZYc0Qtv97BMWks1ftJezRorNpBZDL9rL60SwpH+6dtfq9P4cE0whk3gZmHIDD6QJ5bVRNmD4RP1EqFZbVmKj76SXEe02KqGa5zglbVy0oWfNBS5djVrrv0iJvHLDBkXOZ9K4l3Pbuln1ELifNTGQ7rj51hnTjdKgpIw=
- - secure: blhpC5pfoERXHK5jM6iHGVqbe6k3Rq9Adzt6ZfD9i7EKVMonNd4QbH5rDo6mXXSuuNvv+/fd+oPVnh9hoPUbJ2bsBiHsD0z4Tpz1z4gmjt0QXCyA1fomibQXWGXyjcsaJ01Bj3pq15jrjtPxqJ37JyGMW2zmaCv26NQsLwhPAI0=
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ba33dcd
--- /dev/null
+++ b/README.md
@@ -0,0 +1,2 @@
+[](https://github.com/imglib/imglib-tests/actions/workflows/build-main.yml)
+
diff --git a/pom.xml b/pom.xml
index e8bc204..4cd9b8a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,9 +3,9 @@
4.0.0
- net.imglib2
- pom-imglib2
- 12.0.0
+ org.scijava
+ pom-scijava
+ 28.0.0
@@ -69,8 +69,8 @@ Jean-Yves Tinevez and Michael Zinsmaier.
https://github.com/imglib/imglib-tests/issues
- Travis CI
- https://travis-ci.org/imglib/imglib2-tests
+ GitHub Actions
+ https://github.com/imglib/imglib-tests/actions