Repository: mobie/mobie-viewer-fiji (language: python)

Issue:
Building on CI fails due to missing packages
Hi @imagejan @nicokiaru @ctrueden,

When building on the GitHub CI it throws these errors:

```
Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project mobie-viewer-fiji: Compilation failure: Compilation failure: 
Error:  /home/runner/work/mobie-viewer-fiji/mobie-viewer-fiji/src/main/java/org/embl/mobie/lib/MoBIEHelper.java:[48,21] package spimdata.util does not exist
Error:  /home/runner/work/mobie-viewer-fiji/mobie-viewer-fiji/src/main/java/org/embl/mobie/lib/hcs/OperettaMetadata.java:[3,35] package ch.epfl.biop.bdv.img.opener does not exist
Error:  /home/runner/work/mobie-viewer-fiji/mobie-viewer-fiji/src/main/java/org/embl/mobie/lib/SpimDataAdder.java:[45,21] package spimdata.util does not exist
Error:  /home/runner/work/mobie-viewer-fiji/mobie-viewer-fiji/src/main/java/org/embl/mobie/DataStore.java:[34,38] package ch.epfl.biop.bdv.img.imageplus does not exist
Error:  /home/runner/work/mobie-viewer-fiji/mobie-viewer-fiji/src/main/java/org/embl/mobie/lib/hcs/Plate.java:[49,46] package ch.epfl.biop.bdv.img.bioformats.entity does not exist
```

However, when building locally with `mvn` and also when running it in Fiji everything seems fine...could it be the issue that those are transitive dependencies that come from [mobie-io](https://github.com/mobie/mobie-io/blob/main/pom.xml)?





Discussion / hints:
I'm surprised this compiles locally...

`ch.epfl.biop.bdv.img.opener` should come from [`bigdataviewer-image-loaders`](https://github.com/BIOP/bigdataviewer-image-loaders), and I do not see this dependency declared in your pom
Ah I see, it's in [mobie-io](https://github.com/mobie/mobie-io/blob/main/pom.xml)

Then I do not understand as well

Fix patch:
diff --git a/.github/build.sh b/.github/build.sh
index 7da42622b..523abeb87 100755
--- a/.github/build.sh
+++ b/.github/build.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
-curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh
+curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/main/ci-build.sh
 sh ci-build.sh
diff --git a/.github/setup.sh b/.github/setup.sh
index f359bbeeb..a03464bed 100755
--- a/.github/setup.sh
+++ b/.github/setup.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
-curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-setup-github-actions.sh
+curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/main/ci-setup-github-actions.sh
 sh ci-setup-github-actions.sh
diff --git a/.github/workflows/deploy.yml b/.github/workflows/build.yml
old mode 100755
new mode 100644
similarity index 56%
rename from .github/workflows/deploy.yml
rename to .github/workflows/build.yml
index 1e6c5da87..c382bfcc6
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/build.yml
@@ -1,4 +1,4 @@
-name: deploy
+name: build
 
 on:
   push:
@@ -6,6 +6,10 @@ on:
       - main
     tags:
       - "*-[0-9]+.*"
+  pull_request:
+    branches:
+      - main
+      - develop
 
 jobs:
   build:
@@ -13,32 +17,20 @@ jobs:
 
     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
+      - name: Set up Java
+        uses: actions/setup-java@v3
         with:
           java-version: '8'
           distribution: 'zulu'
+          cache: 'maven'
       - name: Set up CI environment
         run: .github/setup.sh
       - name: Install blosc
         run: sudo apt install libblosc-dev
       - name: Install xvfb
         run: sudo apt-get install xvfb
-      - name: Execute the build using xvfb # in case there are tests with graphics
-        run: xvfb-run --auto-servernum .github/build.sh
+      - name: Execute the build
+        run: .github/build.sh
         env:
           GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
           GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
diff --git a/README.md b/README.md
index 28cc03cc8..7b60f695f 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
-[![](https://github.com/mobie/mobie-viewer-fiji/actions/workflows/build-main.yml/badge.svg)](https://github.com/mobie/mobie-viewer-fiji/actions/workflows/build-main.yml)
+[![Build Status](https://github.com/mobie/mobie-viewer-fiji/actions/workflows/build.yml/badge.svg)](https://github.com/mobie/mobie-viewer-fiji/actions/workflows/build.yml)
+
 [![DOI](https://zenodo.org/badge/177135630.svg)](https://zenodo.org/badge/latestdoi/177135630)
 
 # MoBIE Fiji Viewer


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
deleted file mode 100755
index 917f0f6d0..000000000
--- a/.github/workflows/test.yml
+++ /dev/null
@@ -1,45 +0,0 @@
-name: test
-
-on:
-  pull_request:
-    branches:
-      - main
-      - develop
-  push:
-    branches:
-      - main
-      - develop
-
-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: Install blosc
-        run: sudo apt install libblosc-dev
-      - name: Install xvfb 
-        run: sudo apt-get install xvfb
-      - name: Run mvn test
-        run: mvn test # for testing with graphics prepend: xvfb-run --auto-servernum
-