Repository navigation
Exclude pf2e submodule from linting #102
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: PF2e Request Rolls CI | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: 'true' | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Cache NPM Deps | |
| id: cache-npm | |
| uses: actions/cache@v3 | |
| with: | |
| path: node_modules/ | |
| key: npm-${{ hashFiles('package-lock.json') }} | |
| - name: Install NPM Deps | |
| if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | |
| run: | | |
| npm ci --force | |
| - name: Install PF2e NPM Deps | |
| run: | | |
| cd pf2e | |
| npm ci | |
| - name: Build | |
| run: | | |
| npm run build | |
| - name: Lint | |
| run: | | |
| npm run lint |