Skip to content

Commit

Permalink
Runs-on based on matrix. It also
Browse files Browse the repository at this point in the history
check the code formatting including a new step
  • Loading branch information
juanpedromoreno committed Jun 8, 2023
1 parent 7c2e66f commit 06d331a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@ concurrency:

jobs:
check:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 15

strategy:
matrix:
platform: [ jvm, js, linuxX64, macosX64, mingwX64 ]
include:
- platform: jvm
os: ubuntu-latest
- platform: js
os: ubuntu-latest
- platform: linuxX64
os: ubuntu-latest
- platform: macosX64
os: macos-latest
- platform: mingwX64
os: windows-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -30,6 +40,9 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Run Spotless Check
run: ./gradlew spotlessCheck

- name: Build Multi-platform Modules
run: |
./gradlew \
Expand Down

0 comments on commit 06d331a

Please sign in to comment.