forked from nitram509/jmacaroons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit of Github actions. * Remove Windows build and try to fix Sonar path * Remove travis build.
- Loading branch information
1 parent
238137d
commit 0b3e744
Showing
2 changed files
with
35 additions
and
49 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build and test | ||
on: | ||
workflow_dispatch: # because sometimes you just want to force a branch to have tests run | ||
pull_request: | ||
branches: | ||
- "**" | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
java-version: | ||
- 11 | ||
- 1.8 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Disable shallow clones so Sonar can have all the data | ||
- name: Set up JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
- name: Run Java Tests | ||
run: mvn test | ||
- name: Sonar analysis | ||
run: mvn sonar:sonar -Dsonar.projectKey=jmacaroons -Dsonar.organization=nickrobison-usds -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.java-version == '11' }} |
This file was deleted.
Oops, something went wrong.