feat: update for Doks v1.0.0-beta.2
This commit is contained in:
37
.github/workflows/node.js-ci.yml
vendored
Normal file
37
.github/workflows/node.js-ci.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: Continuous Integration - Action
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
pull_request:
|
||||
branches: master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node-version: [18.x, 20.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 7
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Run test script
|
||||
run: pnpm test
|
||||
|
||||
- name: Build production website
|
||||
run: pnpm build
|
Reference in New Issue
Block a user