diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a66e9c9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: ci +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + maven-install: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '8' + cache: 'maven' + + - name: Build with Maven + run: mvn --batch-mode -T 1C -U install -Dgpg.skip diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c66deec..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -dist: trusty - -language: java - -jdk: - - oraclejdk8 - -git: - depth: false - -cache: - directories: - - $HOME/.m2 - -jobs: - include: - - stage: build - install: true - script: - - mvn --batch-mode -T 1C -U install -Dgpg.skip - -stages: - - name: build - if: (type = pull_request) OR (branch = master) \ No newline at end of file