Skip to content

Commit

Permalink
Update Node in Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 29, 2024
1 parent d306f87 commit 43acd80
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: main
on:
- pull_request
- push
jobs:
small:
name: test / ${{matrix.os}} / ${{matrix.node}}
runs-on: ${{matrix.os}}
env:
PUPPETEER_SKIP_DOWNLOAD: 1
name: test / ${{matrix.os}} / ${{matrix.node}}
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
cache: npm
node-version: ${{matrix.node}}
- run: npm ci
- run: npm run test-api
strategy:
matrix:
include:
- node: lts/hydrogen
os: ubuntu-latest
node:
- node
os:
- macos-latest
- windows-latest
node:
- node
include:
- os: ubuntu-latest
node: lts/gallium
full:
name: full build
runs-on: ubuntu-latest
env:
PUPPETEER_SKIP_DOWNLOAD: 1
name: full build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: node
cache: npm
node-version: node
- run: npm ci
- run: npm test
- uses: codecov/codecov-action@v4
name: main
on:
- pull_request
- push
22 changes: 11 additions & 11 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: website
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: Website
url: ${{steps.deployment.outputs.page_url}}
permissions:
contents: read
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: node
- run: npm ci
- run: npm run docs
- uses: actions/upload-pages-artifact@v3
with:
path: public
- uses: actions/deploy-pages@v4
id: deployment
name: website
on:
push:
branches:
- main

0 comments on commit 43acd80

Please sign in to comment.