添加 linux windows macos

node 16.x 18.x
的ci测试
This commit is contained in:
yun 2023-08-02 14:00:49 +08:00
parent b2156a4c1d
commit 11b8a6a73a

View File

@ -4,16 +4,20 @@ on:
jobs: jobs:
cache-and-install: cache-and-install:
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [ 16.x, 18.x ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install Node.js - name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v2
name: Install pnpm name: Install pnpm