Primitive-Collections/.github/workflows/coverage.yml
Workflow config file is invalid. Please check your config file: yaml: line 17: found a tab character where an indentation space is expected

30 lines
807 B
YAML

name: Measure coverage
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run Coverage
run: |
chmod +x gradlew
./gradlew build jacocoTestCoverage
- name: Upload Report
uses: 'actions/upload-artifact@v2'
with:
name: report.xml
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.2
with:
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}