lint-js.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 2019-2022 Tauri Programme within The Commons Conservancy
  2. # SPDX-License-Identifier: Apache-2.0
  3. # SPDX-License-Identifier: MIT
  4. name: api and cli.js lint check
  5. on:
  6. pull_request:
  7. paths:
  8. - '.github/workflows/lint-js.yml'
  9. - 'tooling/cli/node/**'
  10. - 'tooling/api/**'
  11. concurrency:
  12. group: ${{ github.workflow }}-${{ github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  15. eslint-check:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v2
  19. - uses: actions/setup-node@v2
  20. with:
  21. node-version: '14'
  22. cache: yarn
  23. cache-dependency-path: tooling/*/yarn.lock
  24. - name: install cli.js deps via yarn
  25. working-directory: ./tooling/cli/node/
  26. run: yarn
  27. # nothing to lint
  28. #- name: run cli.js lint
  29. # working-directory: ./tooling/cli/node/
  30. # run: yarn lint
  31. - name: run cli.js format
  32. working-directory: ./tooling/cli/node/
  33. run: yarn format:check
  34. - name: install api deps via yarn
  35. working-directory: ./tooling/api/
  36. run: yarn
  37. - name: run api lint
  38. working-directory: ./tooling/api/
  39. run: yarn lint
  40. - name: run api format
  41. working-directory: ./tooling/api/
  42. run: yarn format:check