update CI to Java 17 #71
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DSpot CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn install -DskipTests | |
- name: Test and Coverage with Maven | |
run: | | |
export MAVEN_HOME=$(mvn --version | grep "Maven home" | cut -f 3 -d " ") | |
cd dspot && mvn test jacoco:report | |
- name: Codecov | |
uses: codecov/codecov-action@v1.5.2 |