diff --git a/.github/workflows/partial-frontend.yaml b/.github/workflows/partial-frontend.yaml index 4f36af5..0781638 100644 --- a/.github/workflows/partial-frontend.yaml +++ b/.github/workflows/partial-frontend.yaml @@ -4,7 +4,28 @@ on: workflow_call: jobs: - Frontend: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: pnpm/action-setup@v2.2.4 + with: + version: 6.0.2 + + - name: Install dependencies + run: pnpm install + working-directory: frontend + + - name: Run Lint + run: pnpm run lint:ci + working-directory: frontend + integration-tests: + name: Integration Tests runs-on: ubuntu-latest steps: - name: Checkout @@ -34,9 +55,5 @@ jobs: run: pnpm install working-directory: frontend - - name: Run linter 👀 - run: pnpm lint - working-directory: "frontend" - - name: Run Integration Tests run: task test:ci diff --git a/frontend/package.json b/frontend/package.json index 0887c5f..3c3b183 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,6 +7,7 @@ "postinstall": "nuxt prepare", "lint": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore .", "lint:fix": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore . --fix", + "lint:ci": "eslint --ext \".ts,.js,.vue\" --ignore-path ../.gitignore . --max-warnings 0", "typecheck": "nuxi typecheck", "test:ci": "TEST_SHUTDOWN_API_SERVER=true vitest --run --config ./test/vitest.config.ts", "test:local": "TEST_SHUTDOWN_API_SERVER=false && vitest --run --config ./test/vitest.config.ts",