Add the read-only analysis catalog panel #968
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| branches: ['main', 'release-prep', 'hotfix-*'] | |
| pull_request: | |
| branches: ['main', 'release-prep', 'hotfix-*'] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout git repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| path: extension-repo | |
| persist-credentials: false | |
| - name: Checkout paranext-core repo to use its sub-packages | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| path: paranext-core | |
| repository: paranext/paranext-core | |
| persist-credentials: false | |
| # See the matching step in test.yml: the core revision floats, so record which one this run | |
| # used. Relevant here because this job typechecks against core's type declarations, so an | |
| # upstream change can turn lint red with no change in this repo. | |
| - name: Record paranext-core revision | |
| working-directory: paranext-core | |
| shell: bash | |
| run: | | |
| echo "### paranext-core \`$(git rev-parse --short HEAD)\`" >> "$GITHUB_STEP_SUMMARY" | |
| git log -1 --format='%H%n%ad%n%s' --date=iso | tee -a "$GITHUB_STEP_SUMMARY" | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| cache: 'npm' | |
| cache-dependency-path: | | |
| extension-repo/package-lock.json | |
| paranext-core/package-lock.json | |
| node-version-file: extension-repo/package.json | |
| - name: Install extension dependencies | |
| working-directory: extension-repo | |
| # Cannot --omit=optional: @swc/core and lightningcss ship native binaries as optional deps | |
| # required by the build toolchain (SWC for transpilation, lightningcss for Tailwind CSS). | |
| run: npm ci --ignore-scripts | |
| - name: Install core dependencies | |
| working-directory: paranext-core | |
| run: npm ci --ignore-scripts --omit=optional | |
| - name: Run format checking | |
| working-directory: extension-repo | |
| run: npm run format:check | |
| - name: Run all linters | |
| working-directory: extension-repo | |
| run: npm run lint |