Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 24 additions & 22 deletions .github/workflows/check_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,27 @@ jobs:
npm run i18n:validate


# prettier_check:
# name: Check Prettier Formatting
# runs-on: ubuntu-latest
# steps:
# - name: Check out Git repository
# uses: actions/checkout@v4
#
# - name: Set-up Node.js according to .nvmrc
# uses: actions/setup-node@v4
# with:
# node-version-file: frontend/.nvmrc
# cache-dependency-path: frontend/package-lock.json
#
# - name: Install dependencies
# working-directory: frontend
# run: |
# npm ci
#
# - name: Check Prettier formatting
# working-directory: frontend
# run: |
# npm run prettier:check
prettier_check:
name: Check Prettier Formatting
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set-up Node.js according to .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: frontend/.nvmrc
cache-dependency-path: frontend/package-lock.json

- name: Install dependencies
working-directory: frontend
run: |
npm ci

- name: Check Prettier formatting
working-directory: frontend
run: |
npx prettier --version
npm run prettier:version
npm run prettier:check
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"preview": "vite preview",
"prettier:format": "prettier --config prettier.config.mjs --write src/**/*.{ts,tsx}",
"prettier:check": "prettier --config prettier.config.mjs --check src/**/*.{ts,tsx}",
"prettier:version": "prettier --version",
"i18n:scan": "i18next-scanner --config i18next-scanner.config.cjs",
"i18n:generate-types": "i18next-resources-for-ts interface -i src/locales -o src/types/i18n.d.ts -c \"This file is generated automatically by i18next-resources-for-ts\"",
"i18n:check-missing": "node scripts/i18n/check-missing.cjs",
Expand Down
Loading