refactor: update the sidebar and remove the topbar #283
Workflow file for this run
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: Frontend Check | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| - 'main' | |
| paths: | |
| - 'frontend/**.jsx?' | |
| - 'frontend/**.tsx?' | |
| - 'frontend/**.css' | |
| - 'frontend/**.json' | |
| - 'Dockerfile*' | |
| - 'docker-compose*.yml' | |
| - '.github/workflows/check_frontend.yml' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| paths: | |
| - 'frontend/**.jsx?' | |
| - 'frontend/**.tsx?' | |
| - 'frontend/**.css' | |
| - 'frontend/**.json' | |
| - 'Dockerfile*' | |
| - 'docker-compose*.yml' | |
| - '.github/workflows/check_frontend.yml' | |
| jobs: | |
| npm_prod: | |
| name: Run `npm run prod` in production mode | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v5 | |
| - name: Set-up Node.js according to .nvmrc | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: frontend/.nvmrc | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Cache npm | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm- | |
| - name: Install dependencies | |
| working-directory: frontend | |
| run: | | |
| npm ci | |
| - name: Lint the project | |
| working-directory: frontend | |
| run: | | |
| npm run lint | |
| - name: Build frontend | |
| working-directory: frontend | |
| run: | | |
| npm run prod | |
| translations_check: | |
| name: Check Translations | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v5 | |
| - name: Set-up Node.js according to .nvmrc | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: frontend/.nvmrc | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Cache npm | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm- | |
| - name: Install dependencies | |
| working-directory: frontend | |
| run: | | |
| npm ci | |
| - name: Check for missing translations | |
| working-directory: frontend | |
| run: | | |
| npm run i18n:check-missing | |
| - name: Validate translations | |
| working-directory: frontend | |
| run: | | |
| npm run i18n:validate | |
| # prettier_check: | |
| # name: Check Prettier Formatting | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Check out Git repository | |
| # uses: actions/checkout@v5 | |
| # | |
| # - 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 |