This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
chore(deps): update plugin org.jetbrains.dokka to v1.9.0 #249
Workflow file for this run
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 | |
on: [push] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
java-version: | |
- 8 | |
- 11 | |
- 17 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'adopt' | |
- name: Run tests | |
run: ./gradlew allTests | |
build: | |
needs: [test] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
directory: | |
- examples/e2e | |
- examples/jvm | |
- examples/native | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
- name: Publish to maven local | |
run: ./gradlew publishToMavenLocal | |
- name: Build | |
run: ./gradlew build | |
working-directory: ${{ matrix.directory }} | |
dokka: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository (master) | |
uses: actions/checkout@v3 | |
- name: Clone Repository (gh-pages) | |
run: git clone https://github.com/${{ github.repository }} -b gh-pages --depth 1 dokka || mkdir dokka | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
cache: gradle | |
- name: Build | |
run: ./gradlew dokkaHtml | |
- name: Deploy to GitHub Pages | |
if: github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dokka |