Skip to content

🔧 update github workflow config #5

🔧 update github workflow config

🔧 update github workflow config #5

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install
run: pnpm install
- name: Lint
run: pnpm lint
# test:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# node-version: [18.x, 20.x]
# os: [ubuntu-latest]
# fail-fast: false
# steps:
# - uses: actions/checkout@v4
# - uses: pnpm/action-setup@v3
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# registry-url: https://registry.npmjs.org/
# cache: pnpm
# - run: pnpm install
# - run: pnpm test