chore: add lint aciton #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
name: Lint | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Install dependencies | |
description: "Set up pnpm and install dependencies" | |
inputs: | |
node-version: | |
description: 'Node.js version' | |
required: false | |
default: 22.5.1 | |
runs: | |
using: "composite" | |
steps: | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: ${{ inputs.node-version }} | |
- name: Install dependencies | |
shell: bash | |
run: pnpm install | |
- name: Lint code | |
run: pnpm lint |