-
Notifications
You must be signed in to change notification settings - Fork 18
93 lines (92 loc) · 2.35 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on:
push:
tags: ["*"]
branches: ['**', '!update/**', '!pr/**']
pull_request:
branches: ['**', '!update/**', '!pr/**']
jobs:
scalafmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java (temurin@8)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: coursier/cache-action@v6
- name: Check formatting
run: sbt -v "scalafmtSbtCheck" "scalafmtCheckAll"
docs:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java (temurin@8)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: coursier/cache-action@v6
- run: sbt docs/run
plugin-tests:
name: Compiler and SBT plugin tests
strategy:
matrix:
os: [ ubuntu-latest ]
scala:
- 2.12.13
- 2.12.14
- 2.12.15
- 2.12.16
- 2.12.17
- 2.12.18
- 2.12.19
- 2.12.20
- 2.13.5
- 2.13.6
- 2.13.7
- 2.13.8
- 2.13.9
- 2.13.10
- 2.13.11
- 2.13.12
- 2.13.13
- 2.13.14
- 2.13.15
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Java (temurin@8)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: coursier/cache-action@v6
- name: Compiler plugin tests
run: sbt -v '++ ${{ matrix.scala }}' plugin/test
- name: SBT plugin tests
run: sbt -v '++ ${{ matrix.scala }}' profilingSbtPlugin/scripted
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Java (temurin@8)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: coursier/cache-action@v6
- name: Running tests
run: sbt -v "showScalaInstances" "integrations/testOnly integration better-files wartremover"