Skip to content

Commit

Permalink
Add test script
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Nov 30, 2023
1 parent 53ac7ca commit 77afd08
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]

jobs:
build_and_test:

runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
java: [ '8', '11', '16', '17', '19' ]
runs-on: [ubuntu-latest, macos-latest, windows-latest]

name: Test on Java ${{ matrix.Java }} on ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.Java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.Java }}
distribution: 'temurin'

- name: Test with Maven
run: |
cd N2A
mvn install
- name: Further tests, non Win
if: ${{ matrix.runs-on != 'windows-latest' }}
run: |
pwd
ls -alt
mvn dependency:tree
# ...
- name: Further tests, Windows
if: ${{ matrix.runs-on == 'windows-latest' }}
run: |
pwd
dir
mvn dependency:tree
# ...

0 comments on commit 77afd08

Please sign in to comment.