Fixing #699 java.lang.SecurityException #105
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: Build/Test | |
on: | |
# Trigger on every pull request | |
pull_request: | |
# This is reused in deploy_snapshot.yml | |
workflow_call: | |
jobs: | |
detekt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout mavericks | |
uses: actions/checkout@v2 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Detekt | |
run: "./gradlew detekt -PCI=true" | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout mavericks | |
uses: actions/checkout@v2 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Lint | |
run: "./gradlew lintRelease" | |
test-coverage: | |
runs-on: ubuntu-latest | |
needs: [detekt, lint] | |
steps: | |
- name: Checkout mavericks | |
uses: actions/checkout@v2 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Unit Tests | |
run: "./gradlew testReleaseUnitTest" | |
- name: Code Coverage | |
run: "./gradlew jacocoFullReport" | |
- name: Report coverage | |
if: ${{ success() }} | |
run: "bash <(curl -s https://codecov.io/bash)" |