Skip to content

Commit

Permalink
Add format check tasks to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kxbmap committed Oct 18, 2021
1 parent 45a4f15 commit 14f7e7c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ jobs:
strategy:
fail-fast: false
matrix:
task: [ 4 ]
jobtype: [ 4 ]
compile-java: [ 11, 17 ]
runtime-java:
- 8 # baseline
- 9 # Jigsaw / module JAXB and javax.annotation bundled
- 11 # LTS / modules no longer bundled
- 17 # LTS
include:
- { task: 1, compile-java: 11 }
- { task: 1, compile-java: 17 }
- { task: 2, compile-java: 11 }
- { task: 2, compile-java: 17 }
- { task: 3, compile-java: 11 }
- { task: 3, compile-java: 17 }
- { task: 5, compile-java: 11 }
- { task: 5, compile-java: 17 }
- { jobtype: 1, compile-java: 11 }
- { jobtype: 1, compile-java: 17 }
- { jobtype: 2, compile-java: 11 }
- { jobtype: 2, compile-java: 17 }
- { jobtype: 3, compile-java: 11 }
- { jobtype: 3, compile-java: 17 }
- { jobtype: 5, compile-java: 11 }
- { jobtype: 5, compile-java: 17 }
env:
JAVA_OPTS: -Xmx3G -Xss6M -Dfile.encoding=utf8
steps:
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: coursier/cache-action@v6

- name: Install runtime Java
if: ${{ matrix.task == 4 }}
if: ${{ matrix.jobtype == 4 }}
env:
RUNTIME_JAVA: "zulu@1.${{ matrix.runtime-java }}"
run: |
Expand All @@ -46,9 +46,9 @@ jobs:
- name: Build and test
run: |
case ${{ matrix.task }} in
case ${{ matrix.jobtype }} in
1)
sbt -v test docs/mdoc
sbt -v test docs/mdoc scalafmtCheckAll scalafmtSbtCheck
;;
2)
sbt -v "core/scripted jooq/*" "checker/scripted jooq-checker/*"
Expand All @@ -63,11 +63,11 @@ jobs:
sbt -v "codegen/scripted it-flyway-sbt/*"
;;
*)
echo "unknown task"
echo "unknown jobtype"
exit 1
esac
- name: Delete non-cached files
- name: Cleanup
run: |
rm -rf "$HOME/.ivy2/local" || true
find $HOME/.sbt -name "*.lock" -delete || true
Expand Down

0 comments on commit 14f7e7c

Please sign in to comment.