Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow rewrite #407

Merged
merged 1 commit into from
Apr 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 17 additions & 24 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
name: build
on:
name: Testing
on:
push:
branches: [master]
pull_request:
branches: [master]
types: [opened, synchronize]
types: [opened, synchronize, reopened]

jobs:
OpenJDK-11-with-SonarQube:
MavenTests:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11' ]
name: Java ${{ matrix.Java }} testing
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Setup java
uses: actions/setup-java@v2
with:
java-version: 11
- name: Build with Maven
run: mvn -B clean verify sonar:sonar
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Testing with Maven
run: mvn -B clean verify
- name: SonarCloud
run: mvn -B sonar:sonar
if: ${{ matrix.java == '11' && env.SONAR_TOKEN != null}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
OpenJDK8:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Build with Maven
run: mvn -B clean verify