move audit and lint to gh action #2
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: "CI" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| - name: Configure git | |
| run: | | |
| git config --local user.email [email protected] | |
| git config --local user.name imodeljs-admin | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Rush install | |
| run: node common/scripts/install-run-rush.js install | |
| audit: | |
| runs-on: ubuntu-latest | |
| needs: setup | |
| steps: | |
| - name: Rush audit | |
| run: node common/scripts/install-run-rush.js audit | |
| lint: | |
| runs-on: ubuntu-latest | |
| needs: setup | |
| steps: | |
| - name: Rush build | |
| run: node common/scripts/install-run-rush.js build | |
| - name: Rush lint | |
| run: node common/scripts/install-run-rush.js lint |