From d46c52bf9ca19b504072484d429f93f7b5aafcdc Mon Sep 17 00:00:00 2001 From: William Niemiec Date: Wed, 11 Aug 2021 22:21:14 -0300 Subject: [PATCH] Github actions --- .github/workflows/macos.yml | 20 ++++++++++++++++++++ .github/workflows/ubuntu.yml | 20 ++++++++++++++++++++ .github/workflows/windows.yml | 27 +++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 .github/workflows/macos.yml create mode 100644 .github/workflows/ubuntu.yml create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..761a9f3 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,20 @@ +name: MacOS + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Maven + run: mvn install diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..faad558 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,20 @@ +name: Ubuntu + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Maven + run: mvn install diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..55f44f4 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,27 @@ +name: Windows + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Maven and generate coverage report + env: + GITHUB_USERNAME: williamniemiec + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: mvn --file pom.xml jacoco:prepare-agent install jacoco:report + - uses: codecov/codecov-action@v1 + with: + file: ./**/target/site/jacoco/jacoco.xml + name: codecov