Skip to content

CI

CI #1

Workflow file for this run

name: CI
on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint:fix
# test:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# node: [lts/*]
# os: [ubuntu-latest, windows-latest, macos-latest]
# fail-fast: false
# steps:
# - uses: actions/checkout@v4
# - name: Install pnpm
# uses: pnpm/action-setup@v4
# - name: Set node version to ${{ matrix.node }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node }}
# cache: pnpm
# - name: Setup
# run: npm i -g @antfu/ni
# - name: Install
# run: nci
# - name: Build
# run: nr build
# - name: Test
# run: nr test