ops: update node.js-ci.yml
This commit is contained in:
parent
8397db9f09
commit
3c976251d4
|
@ -1,4 +1,4 @@
|
||||||
name: Continuous Integration - Action
|
name: Hyas CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -8,30 +8,40 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: "Build: ${{ matrix.os }}"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
timeout-minutes: 3
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
node-version: [18.x, 20.x]
|
node-version: [18.x, 20.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
- uses: pnpm/action-setup@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup PNPM
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7
|
version: 8
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Setup node@${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm ci
|
||||||
|
|
||||||
- name: Run test script
|
# - name: Run formatter
|
||||||
run: pnpm test
|
# run: pnpm format --if-present
|
||||||
|
|
||||||
- name: Build production website
|
# - name: Run linters
|
||||||
run: pnpm build
|
# run: pnpm lint --if-present
|
||||||
|
|
||||||
|
- name: Build site
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
|
# - name: Run tests
|
||||||
|
# run: pnpm test --if-present
|
||||||
|
|
Loading…
Reference in New Issue