clean up #161
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: blockchain/format | |
| on: | |
| workflow_dispatch: {} | |
| workflow_call: | |
| push: | |
| paths: | |
| - blockchain/contracts/** | |
| - .github/workflows/blockchain-prettier.yml | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: blockchain/contracts | |
| jobs: | |
| prettier_check: | |
| runs-on: warp-ubuntu-latest-x64-2x # change to LargeRunner to run on github. Change to self-hosted to run on our own runner. Change to buildjet-8vcpu-ubuntu-2204 to run on buildjet with 8 cpus | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js | |
| uses: WarpBuilds/setup-node@v4 | |
| with: | |
| node-version: 18.17.0 | |
| cache: npm | |
| cache-dependency-path: ${{ github.workspace }}/blockchain/contracts/package-lock.json | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run prettier formatting check | |
| run: npm run prettier:check |