fix(CI): Eslint warning for testing ignored files.

pull/13377/head jitsi-meet_8684
Hristo Terezov 2 years ago
parent e82a5cf150
commit f02c7557af
  1. 5
      .github/workflows/ci.yml
  2. 2
      package.json

@ -18,9 +18,6 @@ jobs:
- name: Get changed lang files - name: Get changed lang files
id: lang-files id: lang-files
run: echo "all=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -oE 'lang\/\S+' | tr '\n' ' ')" >> "$GITHUB_OUTPUT" run: echo "all=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -oE 'lang\/\S+' | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
- name: Get changed files for eslint
id: eslint-files
run: echo "files=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -oE '\S*(\.js|\.ts|\.tsx)(\s|$)' | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
- run: npm install - run: npm install
- name: Check git status - name: Check git status
run: git status run: git status
@ -32,7 +29,7 @@ jobs:
run: npm run lint:lang run: npm run lint:lang
- name: Check if the git repository is clean - name: Check if the git repository is clean
run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1) run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1)
- run: npm run lint:ci --files=${{ steps.eslint-files.outputs.files }} && npm run tsc:ci - run: npm run lint:ci && npm run tsc:ci
linux-build: linux-build:
name: Build Frontend (Linux) name: Build Frontend (Linux)
runs-on: ubuntu-latest runs-on: ubuntu-latest

@ -192,7 +192,7 @@
"tsc:web": "tsc --noEmit --project tsconfig.web.json", "tsc:web": "tsc --noEmit --project tsconfig.web.json",
"tsc:native": "tsc --noEmit --project tsconfig.native.json", "tsc:native": "tsc --noEmit --project tsconfig.native.json",
"tsc:ci": "npm run tsc:web && npm run tsc:native", "tsc:ci": "npm run tsc:web && npm run tsc:native",
"lint:ci": "eslint --ext .js,.ts,.tsx --max-warnings 0 ", "lint:ci": "eslint --ext .js,.ts,.tsx --max-warnings 0 .",
"lint:lang": "for file in lang/*.json; do npx --yes jsonlint -q $file || exit 1; done", "lint:lang": "for file in lang/*.json; do npx --yes jsonlint -q $file || exit 1; done",
"lang-sort": "./resources/lang-sort.sh", "lang-sort": "./resources/lang-sort.sh",
"lint-fix": "eslint --ext .js,.ts,.tsx --max-warnings 0 --fix .", "lint-fix": "eslint --ext .js,.ts,.tsx --max-warnings 0 --fix .",

Loading…
Cancel
Save