diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index eddfa7d..7e775e6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -10,17 +10,18 @@ on: jobs: publish-npm: + name: Publish package to NPM runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 with: distribution: 'temurin' java-version: '11' - - uses: actions/setup-node@v3 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 with: node-version: '20' registry-url: https://registry.npmjs.org/ diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index a2dfbcf..1b7c604 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -10,18 +10,19 @@ on: - master jobs: - run-tests-macos: + run-tests-macos-18: + name: 'macOS (Node 18, Deno 1.36, Java 11)' runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 with: node-version: '18' - - uses: actions/setup-java@v3 + - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 with: distribution: 'microsoft' java-version: '11' - - uses: denoland/setup-deno@v1 + - uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba with: deno-version: '~1.36' - run: npm ci @@ -31,18 +32,19 @@ jobs: env: DENO_NO_PACKAGE_JSON: 1 - run-tests-windows: + run-tests-windows-18: + name: 'Windows (Node 18, Deno 1.36, Java 11)' runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 with: node-version: '18' - - uses: actions/setup-java@v3 + - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 with: distribution: 'semeru' java-version: '11' - - uses: denoland/setup-deno@v1 + - uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba with: deno-version: '~1.36' - run: npm ci @@ -52,18 +54,19 @@ jobs: env: DENO_NO_PACKAGE_JSON: 1 - run-tests-ubuntu: + run-tests-ubuntu-18: + name: 'Ubuntu (Node 18, Deno 1.36, Java 11)' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 with: node-version: '18' - - uses: actions/setup-java@v3 + - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 with: distribution: 'dragonwell' java-version: '11' - - uses: denoland/setup-deno@v1 + - uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba with: deno-version: '~1.36' - run: npm ci @@ -72,3 +75,47 @@ jobs: - run: deno test --import-map=import_map.json test env: DENO_NO_PACKAGE_JSON: 1 + + run-tests-ubuntu-20: + name: 'Ubuntu (Node 20, Deno 1.40, Java 11)' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 + with: + node-version: '20' + - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 + with: + distribution: 'dragonwell' + java-version: '11' + - uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba + with: + deno-version: '~1.40' + - run: npm ci + - run: npm run lint + - run: npm test + - run: deno test --import-map=import_map.json test + env: + DENO_NO_PACKAGE_JSON: 1 + + run-tests-ubuntu-22: + name: 'Ubuntu (Node 22, Deno 1.44, Java 11)' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 + with: + node-version: '22' + - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 + with: + distribution: 'dragonwell' + java-version: '11' + - uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba + with: + deno-version: '~1.44' + - run: npm ci + - run: npm run lint + - run: npm test + - run: deno test --import-map=import_map.json test + env: + DENO_NO_PACKAGE_JSON: 1