Skip to content

Commit

Permalink
Add CI settings
Browse files Browse the repository at this point in the history
  • Loading branch information
harry0000 committed Oct 21, 2023
1 parent be1f22a commit 00b1360
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
name: [ "format", "test" ]
scala: [ 3.3.0, 3.3.1 ]
java: [ 20, 21 ]
include:
- scala: 3.3.0
java: 20
- name: "format"
scala: 3.3.1
java: 21
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: sbt
- shell: bash
run: |
case ${{ matrix.name }} in
"format")
sbt -v scalafmtSbt scalafmtAll
git diff --exit-code
;;
"test")
sbt -v test
;;
*)
echo "unknown job"
exit 1
esac

0 comments on commit 00b1360

Please sign in to comment.