Skip to content

Commit

Permalink
ci: CI on both Node 22 and Deno 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkluijk committed Nov 21, 2024
1 parent ecf0015 commit 8f4b619
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ jobs:
name: "Build"
strategy:
matrix:
runtime: [ 'Node.js v22' ]
runtime: [ 'Node.js' ]
version: [20, 22, 23]

runs-on: ubuntu-latest


steps:
- name: 'Clone repository'
uses: actions/checkout@v4

- name: 'Install Node.js'
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: ${{ matrix.version }}
cache: 'npm'

- name: 'npm ci'
Expand Down Expand Up @@ -48,16 +48,13 @@ jobs:
name: "Build"
strategy:
matrix:
runtime: [ 'Deno v2' ]
runtime: [ 'Deno' ]
version: ['v2.x']

runs-on: ubuntu-latest

permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository

env:
DENO_DIR: '.deno'
DENO_DIR: '/tmp/.deno'

steps:
- name: 'Clone repository'
Expand All @@ -66,13 +63,19 @@ jobs:
- name: 'Install Deno'
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
deno-version: ${{ matrix.version }}

- name: 'restore .deno dir'
uses: actions/cache/restore@v4
with:
path: ${{ env.DENO_DIR }}
key: deno_dir

- name: 'deno install'
run: deno install

- name: 'cache Deno dir'
uses: actions/cache@v2
- name: 'cache .deno dir'
uses: actions/cache/save@v4
with:
path: ${{ env.DENO_DIR }}
key: deno_dir
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache: 'npm'

- name: 'Setup Pages'
uses: actions/configure-pages@v4
Expand Down Expand Up @@ -63,5 +63,4 @@ jobs:

steps:
- name: 'Deploy to GitHub Pages'
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 8f4b619

Please sign in to comment.