Skip to content

Commit

Permalink
CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
psuzn committed Dec 14, 2023
1 parent b8a3c15 commit 40d5d0e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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

0 comments on commit 40d5d0e

Please sign in to comment.