Beds 162/api message #1743
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
name: Frontend Linter | |
on: | |
push: | |
paths: | |
- 'frontend/**' | |
branches: | |
- main | |
- staging | |
pull_request: | |
paths: | |
- 'frontend/**' | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
frontend-lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Node Environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
cache: 'npm' | |
cache-dependency-path: frontend/package-lock.json | |
- name: Install Dependencies | |
working-directory: frontend | |
env: | |
FA_PRO_KEY: ${{ secrets.FA_PRO_KEY }} | |
run: npm --userconfig=".npmrc_ci" ci | |
- name: Lint Files | |
working-directory: frontend | |
run: npm run lint |