Skip to content

Commit

Permalink
Try bringing format check into the platform specific jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianReeves committed Oct 4, 2024
1 parent 2654142 commit a9ae0c2
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ concurrency:

jobs:
lint:
if: false
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand All @@ -43,10 +44,10 @@ jobs:
with:
distribution: "temurin"
java-version: "17"
# - name: Cache scala dependencies
# uses: coursier/cache-action@v6
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Lint code
run: ./mill -i -k -j 0 "__.checkFormat"
run: ./mill __.checkFormat

test-jvm:
runs-on: ubuntu-latest
Expand All @@ -71,9 +72,11 @@ jobs:

- name: Run JVM tests
run: |
./mill -i -k -j 0 "morphir[${{matrix.scala}}].__.jvm.__.compile" + "morphir[${{matrix.scala}}].__.jvm.publishArtifacts" + "morphir[${{matrix.scala}}].__.jvm.__.test"
./mill -i -k -j 0 "morphir[${{matrix.scala}}].__.jvm.__.compile" + "morphir[${{matrix.scala}}].__.jvm.publishArtifacts" + "morphir[${{matrix.scala}}].__.jvm.__.test"
- name: Check JVM format
run: ./mill -i -k -j 0 "morphir[${{matrix.scala}}].__.jvm.__.test"

- name: Cache JVM build output
- name: Lint Scala (JVM)
# when in master repo: all commits to main branch and all additional tags
if: github.ref == 'refs/heads/main' || (github.ref != 'refs/heads/main' && startsWith( github.ref, 'refs/tags/') )
uses: actions/cache/save@v4
Expand Down Expand Up @@ -107,8 +110,11 @@ jobs:
- name: Run JS tests
run: |
./mill -i -k -j 0 "morphir[${{matrix.scala}}].__.js.__.compile" + "morphir[${{matrix.scala}}].__.js.publishArtifacts" + "morphir[${{matrix.scala}}].__.js.__.test"
- name: Check JS format
run: ./mill -i -k -j 0 "morphir[${{matrix.scala}}].__.js.__.test"

- name: Cache JS build output
- name: Lint ScalaJS
# when in master repo: all commits to main branch and all additional tags
if: github.ref == 'refs/heads/main' || (github.ref != 'refs/heads/main' && startsWith( github.ref, 'refs/tags/') )
uses: actions/cache/save@v4
Expand Down Expand Up @@ -148,6 +154,9 @@ jobs:
run: |
./mill -i -k -j 0 "morphir[${{matrix.scala}}].__.native.__.compile" + "morphir[${{matrix.scala}}].__.native.publishArtifacts" + "morphir[${{matrix.scala}}].__.native.__.test"
- name: Lint ScalaNative
run: ./mill -i -k -j 0 "morphir[${{matrix.scala}}].__.native.__.test"

- name: Cache Native build output
# when in master repo: all commits to main branch and all additional tags
if: github.ref == 'refs/heads/main' || (github.ref != 'refs/heads/main' && startsWith( github.ref, 'refs/tags/') )
Expand Down

0 comments on commit a9ae0c2

Please sign in to comment.