-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (36 loc) · 854 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- jobtype: 1
- jobtype: 2
- jobtype: 3
- jobtype: 4
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
cache: sbt
- if: ${{ matrix.jobtype == 1 }}
shell: bash
run: sbt -v "++2.13.x" library/test
- if: ${{ matrix.jobtype == 2 }}
shell: bash
run: sbt -v "++2.12.x" test scripted
- if: ${{ matrix.jobtype == 3 }}
shell: bash
run: sbt -v "++3.x" library/test
- if: ${{ matrix.jobtype == 4 }}
shell: bash
run: sbt -v "++2.12.x" scalafmtSbtCheck scalafmtCheckAll