From 33170e00d953c002a9bd743d251c9deef3e04427 Mon Sep 17 00:00:00 2001 From: TATSUNO Yasuhiro Date: Wed, 5 Apr 2023 14:17:26 +0900 Subject: [PATCH 1/2] Migrate the deprecated action --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 83a01d9..b053bbe 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,9 +10,9 @@ jobs: steps: # TODO: Ensure Node.js v12+ - uses: actions/checkout@v2.3.4 - - uses: olafurpg/setup-scala@v11 + - uses: coursier/setup-action@v1 with: - java-version: adopt@1.11 + jvm: adopt:11 - uses: coursier/cache-action@v6 - run: npm install jsdom@${{ matrix.jsdom }} - name: Run core From d45239fb592cbecee3e696996373409d5c2851a2 Mon Sep 17 00:00:00 2001 From: TATSUNO Yasuhiro Date: Wed, 5 Apr 2023 14:26:14 +0900 Subject: [PATCH 2/2] Setup Node --- .github/workflows/ci.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b053bbe..93e5bd7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,7 +6,16 @@ jobs: strategy: fail-fast: false matrix: - jsdom: [16.3.0, 16.6.0] + jsdom: ["10.0.0", "16.6.0", "21.0.0"] + include: + - jsdom: 10.0.0 + node: 12 + - jsdom: 16.0.0 + node: 12 + - jsdom: 21.0.0 + node: 14 + - jsdom: 21.0.0 + node: 18 steps: # TODO: Ensure Node.js v12+ - uses: actions/checkout@v2.3.4 @@ -14,6 +23,10 @@ jobs: with: jvm: adopt:11 - uses: coursier/cache-action@v6 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: "${{ matrix.node }}" - run: npm install jsdom@${{ matrix.jsdom }} - name: Run core run: sbt ++scalajs-env-jsdom-nodejs/test ++scalajs-env-jsdom-nodejs/doc