Skip to content

Commit

Permalink
Start using Github Actions for builds, stop using Travis-CI (#8)
Browse files Browse the repository at this point in the history
* Start using Github Actions for builds

* Resolve duplicate 'run' key issue

* Use JDK 1.8

* Use the 'adopt' java distribution

* Use Java 8

* Rename the job, reorder steps

* Stop using Travis-CI
  • Loading branch information
jdvorak001 authored Jun 17, 2021
1 parent 676f1b9 commit 5541275
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -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/
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

0 comments on commit 5541275

Please sign in to comment.