Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub actions #37

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
77 changes: 62 additions & 15 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Loading