Skip to content

add: github actions

add: github actions #1

Workflow file for this run

name: Lint
on:
pull_request:
branches: ["*"]
jobs:
lint:
runs-on: ubuntu-latest
name: pnpm lint
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
id: install-pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.1
run_install: false
- name: Get Pnpm Store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Pnpm cache
uses: actions/cache@v4
with:
path: ${{steps.pnpm-cache.outcome.pnpm_cache_dir}}
key: ${{runner.os}}-pnpm-cache-${{hashFiles('**/pnpm-lock.yaml')}}
restore-keys: |
${{runner.os}}-pnpm-cache-
- name: Install Package Depenedency
run: pnpm install
- name: Run Lint
run: pnpm lint