diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72a2117..9dfaf0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,23 +13,32 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 - uses: pnpm/action-setup@v2 with: version: 8 - - name: Use Node.js 20 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: - node-version: 20 + node-version: ${{ matrix.node-version }} cache: 'pnpm' - name: Install dependencies run: pnpm i + - name: Check Format + run: pnpm format:check + + - name: Lint + run: pnpm lint:eslint + - name: Lint - run: pnpm lint + run: pnpm lint:markdownlint - - name: Run Prettier Check - run: pnpm format:prettier:check + - name: Build + run: pnpm build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb01f91..f503eac 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,7 +31,7 @@ jobs: run: pnpm i - name: Check Format - run: pnpm format:prettier:check + run: pnpm format:check - name: Lint run: pnpm lint:eslint