diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..1aa83c8 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,29 @@ +# 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: Build and test openaire-cris-validator + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Checkout the OpenAIRE Guidelines for CRIS Managers repo + run: git clone --branch=master https://github.com/openaire/guidelines-cris-managers.git ../guidelines-cris-managers + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Build with Maven + run: mvn package -Dmaven.javadoc.skip=true -B -V + - name: Run the validator on the example files + run: java -jar target/openaire-cris-validator-*-jar-with-dependencies.jar file:samples/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 97dfec9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: java -jdk: - - openjdk8 -before_install: - - git clone --branch=master https://github.com/openaire/guidelines-cris-managers.git ../guidelines-cris-managers -script: - - mvn package -Dmaven.javadoc.skip=true -B -V - - java -jar target/openaire-cris-validator-*-jar-with-dependencies.jar file:samples/