Skip to content

Commit

Permalink
CI setup (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
psuzn authored Dec 15, 2023
1 parent b8a3c15 commit 6be2552
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 test

0 comments on commit 6be2552

Please sign in to comment.