chore: Run formatting & test checks on all PRs & commits #1
Workflow file for this run
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: 'SCIP Style' | |
| env: | |
| NODE_VERSION: '16' | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| pyright-scip-style: | |
| runs-on: ubuntu-latest | |
| name: Pyright-SCIP Style | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Get npm cache directory | |
| id: npm-cache | |
| run: | | |
| echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT | |
| - uses: actions/cache@v3 | |
| with: | |
| path: ${{ steps.npm-cache.outputs.dir }} | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - run: npm install | |
| working-directory: packages/pyright-scip | |
| - name: Check prettier formatting | |
| run: npm run check:prettier | |
| working-directory: packages/pyright-scip |