Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

chore(deps): update plugin org.jetbrains.kotlin.plugin.serialization … #241

chore(deps): update plugin org.jetbrains.kotlin.plugin.serialization …

chore(deps): update plugin org.jetbrains.kotlin.plugin.serialization … #241

Workflow file for this run

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