Skip to content

Commit

Permalink
Add jvmTest to Github Actions CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanDYDX committed Sep 24, 2024
1 parent 599ce82 commit b8d3e83
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,43 @@ name: CI

on:
pull_request:
paths:
- '**/*.kt'

jobs:
spotless:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
java-version: '17'
- uses: gradle/actions/setup-gradle@v4
- name: spotless
run: |
./gradlew spotlessCheck
detekt:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
java-version: '17'
- uses: gradle/actions/setup-gradle@v4
- name: detekt
run: |
./gradlew detektMetadataMain
jvmTest:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- uses: gradle/actions/setup-gradle@v4
- name: jvmTest
run: |
./gradlew jvmTest

0 comments on commit b8d3e83

Please sign in to comment.