dpe updates #2328
This file contains hidden or 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: lint-and-format | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| lint-and-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: lts/* | |
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| with: | |
| version: latest | |
| - name: install-sponge | |
| run: sudo apt-get install -y moreutils | |
| - name: biome-backend | |
| run: | | |
| cd backend | |
| pnpm install --frozen-lockfile | |
| pnpm biome lint --write | |
| pnpm biome format --write | |
| - name: biome-frontend | |
| run: | | |
| cd frontend | |
| pnpm install --frozen-lockfile | |
| pnpm biome lint --write | |
| pnpm biome format --write | |
| pnpm formatjs compile-folder src/locale/src src/locale/lang | |
| pnpm vitest | |
| ./src/locale/scripts/locale-sort.sh | |
| - name: nginxbeautifier | |
| run: | | |
| pnpm add -g nginxbeautifier | |
| nginxbeautifier -s 2 -r rootfs/usr/local/nginx/conf | |
| - name: push changes | |
| run: | | |
| git add -A | |
| git config user.name "GitHub" | |
| git config user.email "noreply@github.com" | |
| git commit -sm "update and lint" || true | |
| git push || true |