Skip to content

Commit 8c9f309

Browse files
Merge pull request #61 from alexarchambault/merge-upstream
Merge upstream changes
2 parents 7e345f6 + 710679c commit 8c9f309

File tree

2 files changed

+45
-37
lines changed

2 files changed

+45
-37
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,22 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17+
with:
18+
submodules: true
19+
fetch-depth: 0
1720
- uses: coursier/[email protected]
1821
with:
1922
jvm: "graalvm-java17:21.3.0"
2023
- name: Check formatting
2124
run: ./bin/scalafmt --test
22-
test:
25+
bridges:
26+
name: Test platform bridges
2327
runs-on: ${{ matrix.os }}
2428
strategy:
2529
fail-fast: false
2630
matrix:
2731
os: [ubuntu-latest, windows-latest, macOS-latest]
28-
jdk: ["graalvm-java17:21.3.0", "temurin:17"]
29-
name: Test ${{ matrix.os }} -- ${{ matrix.jdk }}
30-
env:
31-
HYDRA_LICENSE: ${{ secrets.HYDRA_LICENSE }}
32+
jdk: ["graalvm-java17:21.3.0"]
3233
steps:
3334
- uses: actions/checkout@v3
3435
with:
@@ -37,36 +38,47 @@ jobs:
3738
- uses: coursier/[email protected]
3839
with:
3940
jvm: ${{ matrix.jdk }}
40-
- name: Set up environment
41-
run: |
42-
curl -Lo coursier https://git.io/coursier-cli && chmod +x coursier && ./coursier --help
43-
yarn --help
44-
java -version
45-
[[ $HYDRA_LICENSE == floating-key=* ]] && mkdir -p $HOME/.triplequote && echo "$HYDRA_LICENSE" > "$HOME/.triplequote/hydra.license" || echo "Hydra license file was not created"
46-
shell: bash
47-
- name: Compile and test main projects
41+
- name: Tests
4842
run: |
4943
.github/setup-test-projects.sh &&\
5044
./bin/sbt-ci.sh \
51-
"frontend/test:compile" \
52-
"backend/test" \
5345
"jsBridge06/publishLocal" \
5446
"jsBridge1/publishLocal" \
55-
"frontend/testOnly bloop.ScalaVersionsSpec" \
56-
"frontend/testOnly -bloop.ScalaVersionsSpec" \
5747
"jsBridge06/test" \
58-
"jsBridge1/test" &&\
59-
./bin/sbt-ci.sh \
60-
"+test:compile"
48+
"jsBridge1/test"
6149
shell: bash
62-
launcher-test:
50+
51+
launcher:
52+
name: Launcher tests
6353
runs-on: ${{ matrix.os }}
6454
strategy:
6555
fail-fast: false
6656
matrix:
6757
os: [ubuntu-latest, windows-latest, macOS-latest]
6858
jdk: ["graalvm-java17:21.3.0"]
69-
name: Launcher tests ${{ matrix.os }} -- ${{ matrix.jdk }}
59+
steps:
60+
- uses: actions/checkout@v3
61+
with:
62+
submodules: true
63+
fetch-depth: 0
64+
- uses: coursier/[email protected]
65+
with:
66+
jvm: ${{ matrix.jdk }}
67+
- name: Tests
68+
run: |
69+
echo $JAVA_HOME
70+
which gu && gu install native-image
71+
./bin/sbt-ci.sh publishLocal "launcherTest/test"
72+
shell: bash
73+
74+
test:
75+
runs-on: ${{ matrix.os }}
76+
strategy:
77+
fail-fast: false
78+
matrix:
79+
os: [ubuntu-latest, windows-latest, macOS-latest]
80+
jdk: ["graalvm-java17:21.3.0", "temurin:17"]
81+
name: Test ${{ matrix.os }} -- ${{ matrix.jdk }}
7082
env:
7183
HYDRA_LICENSE: ${{ secrets.HYDRA_LICENSE }}
7284
steps:
@@ -84,19 +96,16 @@ jobs:
8496
java -version
8597
[[ $HYDRA_LICENSE == floating-key=* ]] && mkdir -p $HOME/.triplequote && echo "$HYDRA_LICENSE" > "$HOME/.triplequote/hydra.license" || echo "Hydra license file was not created"
8698
shell: bash
87-
- name: Prepare launcher tests
88-
run: |
89-
echo $JAVA_HOME
90-
which gu && gu install native-image
91-
./bin/sbt-ci.sh publishLocal
92-
shell: bash
93-
- name: Prepare launcher tests
94-
if: matrix.os != 'windows-latest'
95-
run: |
96-
./bin/sbt-ci.sh bloopgun/graalvm-native-image:packageBin
97-
- name: Run launcher tests
99+
- name: Compile and test main projects
98100
run: |
99-
./bin/sbt-ci.sh "launcherTest/test"
101+
.github/setup-test-projects.sh &&\
102+
./bin/sbt-ci.sh \
103+
"frontend/test:compile" \
104+
"backend/test" \
105+
"frontend/testOnly bloop.ScalaVersionsSpec" \
106+
"frontend/testOnly -bloop.ScalaVersionsSpec" &&\
107+
./bin/sbt-ci.sh \
108+
"+test:compile"
100109
shell: bash
101110

102111
publish-binaries:
@@ -164,7 +173,7 @@ jobs:
164173
uses: al-cheb/[email protected]
165174
- name: Refresh Pagefile
166175
run: |
167-
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
176+
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
168177
- uses: actions/checkout@v3
169178
with:
170179
submodules: true
@@ -202,7 +211,6 @@ jobs:
202211
name: bloop-artifacts
203212
path: bloop-artifacts/${{ matrix.artifact }}
204213

205-
206214
release:
207215
name: Release version on ${{ matrix.os }}
208216
needs:

frontend/src/test/scala/bloop/DeduplicationSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ object DeduplicationSpec extends bloop.bsp.BspBaseSuite {
180180
}
181181

182182
test("deduplication removes invalidated class files from all external classes dirs") {
183-
val attempts = if (System.getenv("CI") != null && Properties.isWin) 3 else 1
183+
val attempts = if (System.getenv("CI") != null) 3 else 1
184184
TestUtil.retry(attempts) {
185185
deduplicationInvalidatedClassFilesRemovalTest()
186186
}

0 commit comments

Comments
 (0)