Skip to content

Update CI

Update CI #49

Workflow file for this run

name: Verify code style
on:
workflow_dispatch:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: "npm"
cache-dependency-path: "package.json"
- name: Check CI cache
id: check-cache

Check failure on line 28 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./package.json') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('./package.json') }}
- name: Install dependencies
if: steps.check-cache.outputs.cache-hit != 'true'
run: npm install
- name: Code lint
run: npm run lint