Enhance CI workflow with PathVisio core integration #127
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PathVisio GitHub Plugin CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Checkout PathVisio core (pathvisio4-ant) | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: PathVisio/pathvisio4-ant | |
| path: pathvisio4-ant | |
| - name: Set up Ant | |
| run: sudo apt-get install -y ant | |
| - name: Build PathVisio core jars with Ant | |
| working-directory: pathvisio4-ant | |
| run: ant desktop.jar | |
| - name: Install PathVisio jars into local Maven repo | |
| run: | | |
| mvn install:install-file -Dfile=pathvisio4-ant/modules/org.pathvisio.core.jar \ | |
| -DgroupId=org.pathvisio -DartifactId=org.pathvisio.core \ | |
| -Dversion=4.0.0-local -Dpackaging=jar | |
| mvn install:install-file -Dfile=pathvisio4-ant/modules/org.pathvisio.gui.jar \ | |
| -DgroupId=org.pathvisio -DartifactId=org.pathvisio.gui \ | |
| -Dversion=4.0.0-local -Dpackaging=jar | |
| mvn install:install-file -Dfile=pathvisio4-ant/modules/org.pathvisio.desktop.jar \ | |
| -DgroupId=org.pathvisio -DartifactId=org.pathvisio.desktop \ | |
| -Dversion=4.0.0-local -Dpackaging=jar | |
| - name: Build with Maven | |
| run: mvn -B package --file pom.xml | |
| - name: Run tests | |
| run: mvn -B test --file pom.xml |