Skip to content

test PR

test PR #1

Workflow file for this run

name: Check Frontend
on:
pull_request:
paths:
- '*'
jobs:
frontend:
defaults:
run:
working-directory: frontend
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "dir=$(npm config get cache)" >> $GITHUB_ENV
- uses: actions/cache@v2
id: npm-cache
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install packages
run: npm install
- name: fmt
run: npm run fmt && git diff --exit-code
- name: lint
run: npm run lint