diff --git a/.github/workflows/ci-web.yml b/.github/workflows/ci-web.yml index f45b03715..c3659792f 100644 --- a/.github/workflows/ci-web.yml +++ b/.github/workflows/ci-web.yml @@ -13,19 +13,25 @@ on: jobs: lint-eslint: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + project: + - web + - tests/wdio steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: "20" cache: "npm" - cache-dependency-path: web/package-lock.json - - working-directory: web/ + cache-dependency-path: ${{ matrix.project }}/package-lock.json + - working-directory: ${{ matrix.project }}/ run: npm ci - name: Generate API run: make gen-client-ts - name: Eslint - working-directory: web/ + working-directory: ${{ matrix.project }}/ run: npm run lint lint-build: runs-on: ubuntu-latest @@ -45,19 +51,25 @@ jobs: run: npm run tsc lint-prettier: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + project: + - web + - tests/wdio steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: "20" cache: "npm" - cache-dependency-path: web/package-lock.json - - working-directory: web/ + cache-dependency-path: ${{ matrix.project }}/package-lock.json + - working-directory: ${{ matrix.project }}/ run: npm ci - name: Generate API run: make gen-client-ts - name: prettier - working-directory: web/ + working-directory: ${{ matrix.project }}/ run: npm run prettier-check lint-lit-analyse: runs-on: ubuntu-latest diff --git a/tests/wdio/package.json b/tests/wdio/package.json index 411a215f3..2530d7ffd 100644 --- a/tests/wdio/package.json +++ b/tests/wdio/package.json @@ -22,6 +22,7 @@ "scripts": { "wdio": "wdio run ./wdio.conf.ts", "lint:precommit": "eslint --max-warnings 0 --config ./.eslintrc.precommit.json $(git status --porcelain . | grep '^[AM?][M?]' | cut -d'/' -f3- | grep -E '\\.(ts|js|tsx|jsx)$')", + "lint": "eslint . --max-warnings 0 --fix", "lint:spelling": "codespell -D - -D $(git rev-parse --show-toplevel 2> /dev/null)/.github/codespell-dictionary.txt -I $(git rev-parse --show-toplevel 2> /dev/null)/.github/codespell-words.txt ./test -s", "precommit": "run-s lint:precommit lint:spelling prettier", "prettier-check": "prettier --check .",