User-defined segment boundaries #504
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| path: extension-repo | |
| persist-credentials: false | |
| - name: Checkout paranext-core repo to use its sub-packages | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| path: paranext-core | |
| repository: paranext/paranext-core | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.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 |