Skip to content

Update dokka.yml

Update dokka.yml #178

Workflow file for this run

name: build
on:
push:
branches:
- main
- release
pull_request:
jobs:
build:
name: build
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
id-token: write
pages: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
- name: Run build
run: |
./gradlew clean build
- name: Archive test report
uses: actions/upload-artifact@v4
with:
name: Test report
path: build/reports/tests/test
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.6.1
with:
paths: |
${{ github.workspace }}/build/jacoco/test/jacocoTestReport.xml,
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
update-comment: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Bram--/bggclient
target-folder: api