ci: combine UI linting jobs

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/877/head
Varun Patil 2023-10-15 17:31:01 -07:00
parent fe55caead2
commit ab0a123bdb
1 changed files with 6 additions and 16 deletions

View File

@ -45,28 +45,18 @@ jobs:
make install-tools make install-tools
vendor/bin/psalm --no-cache --shepherd --stats --threads=4 lib vendor/bin/psalm --no-cache --shepherd --stats --threads=4 lib
prettier: vue-tsc-prettier:
name: Prettier name: Vue Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the app
uses: actions/checkout@v3
- name: Install Pretter
run: npm install --no-save "prettier@$(cat ./package.json | jq -r '.devDependencies["prettier"]')"
- name: Run Prettier
run: npx prettier src --check
vue-tsc:
name: Vue Type Checking
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout the app - name: Checkout the app
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install vue-tsc - name: Install vue-tsc
run: npm install --no-save "vue-tsc@$(cat ./package.json | jq -r '.devDependencies["vue-tsc"]')" run: npm ci
- name: Run vue-tsc - name: Run vue-tsc
run: npx vue-tsc --noEmit --skipLibCheck run: npx vue-tsc --noEmit --skipLibCheck
- name: Run Prettier
run: npx prettier src --check