Skip to content

Commit 6b1d001

Browse files
authored
Merge pull request #1120 from japgolly/fix_ci
2 parents 5d6c650 + f62b5a8 commit 6b1d001

File tree

6 files changed

+532
-5
lines changed

6 files changed

+532
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
include:
2121
- java: 18.0.1
2222
scala: 2
23+
node: 24.10.0
2324
- java: 11.0.15
2425
scala: 3
25-
name: Scala v${{ matrix.scala }} / Java v${{ matrix.java }}
26+
node: 18.20.8
27+
name: Scala v${{ matrix.scala }} / Java v${{ matrix.java }} / Node v${{ matrix.node }}
2628
steps:
2729

2830
- name: Git checkout
@@ -34,6 +36,8 @@ jobs:
3436
uses: japgolly/[email protected]
3537
with:
3638
java-version: adoptium@1.${{ matrix.java }}
39+
jsdom-version: 26.1.0
40+
node-version: ${{ matrix.node }}
3741

3842
- name: Build and test
3943
shell: bash

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@
1616
~*
1717
metals.sbt
1818
node_modules/
19-
package-lock.json
2019
target
21-
.direnv/
20+
.direnv/

bin/ci

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,26 @@ dryrun=
3333
# dryrun=-n
3434

3535
# See how much memory is available
36-
free -h
36+
if [ "$(uname)" == "Darwin" ]; then # https://apple.stackexchange.com/a/94258
37+
vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages\s+([^:]+)[^\d]+(\d+)/ and printf("%-16s % 16.2f Mi\n", "$1:", $2 * $size / 1048576);'
38+
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
39+
free -h
40+
fi
41+
echo
42+
43+
# Show versions
44+
java -version
45+
echo
46+
echo "Node $(node --version)"
3747
echo
3848

49+
# Configure jsdom
50+
cmd=(npm install)
51+
echo "> $(printf "%s\n " "${cmd[@]}")"
52+
[[ $dryrun == "-n" ]] || "${cmd[@]}"
53+
npm -g list
54+
npm list
55+
3956
# Test upstream
4057
rm -rf */target/scala-*/{,test-}classes
4158
cmd=(

downstream-tests/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ all_tests_values=(
1818
"-Ddownstream_tests.fullOptJS -Ddownstream_tests.reusability.dev=overlay"
1919
)
2020
all_tests_keys=()
21-
declare -A all_tests
21+
declare -a all_tests
2222
i=0
2323
for t in "${all_tests_values[@]}"; do
2424
i=$((i+1))

0 commit comments

Comments
 (0)