Skip to content

Commit 3cdeef0

Browse files
authored
chore: fine grained CI actions (scalacenter#1706)
1 parent bfcb709 commit 3cdeef0

File tree

1 file changed

+49
-18
lines changed

1 file changed

+49
-18
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
pull_request:
1010

1111
jobs:
12-
scalafmt:
12+
scalafmt:
1313
name: Formatting
1414
runs-on: ubuntu-latest
1515
steps:
@@ -19,7 +19,7 @@ jobs:
1919
java-version: [email protected]
2020
- name: Check formatting
2121
run: ./bin/scalafmt --test
22-
integrations:
22+
integrations:
2323
name: Build integrations tests
2424
runs-on: ${{ matrix.os }}
2525
strategy:
@@ -51,6 +51,52 @@ jobs:
5151
"sbtBloop10Shaded/publishLocal" \
5252
"sbtBloop10/scripted"
5353
shell: bash
54+
bridges:
55+
name: Test platform bridges
56+
runs-on: ${{ matrix.os }}
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
os: [ubuntu-latest, windows-latest, macOS-latest]
61+
62+
steps:
63+
- uses: actions/checkout@v2
64+
with:
65+
submodules: true
66+
- uses: olafurpg/setup-scala@v13
67+
with:
68+
java-version: ${{ matrix.jdk }}
69+
- name: Tests
70+
run: |
71+
./bin/sbt-ci.sh \
72+
"jsBridge06/publishLocal" \
73+
"jsBridge1/publishLocal" \
74+
"jsBridge06/test" \
75+
"jsBridge1/test" \
76+
shell: bash
77+
78+
launcher:
79+
name: Launcher tests
80+
runs-on: ${{ matrix.os }}
81+
strategy:
82+
fail-fast: false
83+
matrix:
84+
os: [ubuntu-latest, windows-latest, macOS-latest]
85+
86+
steps:
87+
- uses: actions/checkout@v2
88+
with:
89+
submodules: true
90+
- uses: olafurpg/setup-scala@v13
91+
with:
92+
java-version: ${{ matrix.jdk }}
93+
- name: Tests
94+
run: |
95+
echo $JAVA_HOME
96+
which gu && gu install native-image
97+
./bin/sbt-ci.sh "install" "launcherTest/test"
98+
shell: bash
99+
54100
test:
55101
runs-on: ${{ matrix.os }}
56102
strategy:
@@ -92,31 +138,17 @@ jobs:
92138
run: |
93139
./bin/sbt-ci.sh \
94140
"frontend/test:compile" \
95-
"sbtBloop013/compile" \
96-
"sbtBloop10/compile" \
97-
"mavenBloop/compile" \
98141
"backend/test" \
99142
"docs/compile" \
100-
"jsBridge06/publishLocal" \
101-
"jsBridge1/publishLocal" \
102143
"frontend/testOnly bloop.ScalaVersionsSpec" \
103144
"frontend/testOnly -bloop.ScalaVersionsSpec" \
104-
"jsBridge06/test" \
105-
"jsBridge1/test" \
106145
"frontend/runMain bloop.util.CommandsDocGenerator --test" \
107146
"frontend/runMain bloop.util.CommandsDocGenerator --out ../docs/cli/reference.md"
108147
shell: bash
109148
- name: Check docs are up-to-date
110149
run: |
111150
./bin/check-good-practices.sh
112151
shell: bash
113-
- name: Run launcher tests
114-
if: matrix.jdk == '[email protected]'
115-
run: |
116-
echo $JAVA_HOME
117-
which gu && gu install native-image
118-
./bin/sbt-ci.sh "install" "launcherTest/test"
119-
shell: bash
120152

121153
publish-binaries:
122154
name: Publish binaries for ${{ matrix.os }}
@@ -183,7 +215,7 @@ jobs:
183215
uses: al-cheb/[email protected]
184216
- name: Refresh Pagefile
185217
run: |
186-
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
218+
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
187219
- uses: actions/checkout@v3
188220
with:
189221
submodules: true
@@ -220,7 +252,6 @@ jobs:
220252
with:
221253
name: bloop-artifacts
222254
path: bloop-artifacts/${{ matrix.artifact }}
223-
224255

225256
release:
226257
name: Release version on ${{ matrix.os }}

0 commit comments

Comments
 (0)