Skip to content

Commit

Permalink
Merge pull request #240 from olibye/build-with-github-actions
Browse files Browse the repository at this point in the history
Build with GitHub actions
  • Loading branch information
olibye committed Mar 7, 2024
2 parents 307f6c2 + f1b7326 commit c3020ad
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
name: Java ${{ matrix.java }} build
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
java: [ 8, 11 ]
experimental: [false]
include:
- java: 17
experimental: true
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<configuration>
<rules>
<requireMavenVersion>
<version>3.0.5</version>
<version>3.6.3</version>
</requireMavenVersion>
</rules>
</configuration>
Expand Down

0 comments on commit c3020ad

Please sign in to comment.