Skip to content

CI setup

CI setup #9

Workflow file for this run

name: CI
on:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: |
11
17
distribution: 'temurin'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Setup Gradle
uses: gradle/[email protected]
- name: Lint
run: ./gradlew ktlintCheck
- name: Tests
run: ./gradlew allTests
- name: Build Project
run: ./gradlew build -x lint -x tests