Skip to content

replace Travis CI badge with Github Actions #104

replace Travis CI badge with Github Actions

replace Travis CI badge with Github Actions #104

Workflow file for this run

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)"