Update Shard tasks in Hard Tier #122
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 & Check Generation | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - name: Lint code | |
| run: npm run lint:ultracite | |
| - name: Lint tasks | |
| run: npm run lint:tasks | |
| - name: Lint schema | |
| run: npm run lint:schema | |
| lint-links: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .cache | |
| key: cache-${{ hashFiles('tiers/*.json') }} | |
| restore-keys: | | |
| cache- | |
| - name: Lint code | |
| run: npm run lint:links | |
| check-types: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - name: Generate types | |
| run: npm run gen:types | |
| - name: Ensure types are up to date | |
| run: | | |
| if [ -n "$(git status --porcelain)" ]; then | |
| exit 1 | |
| fi |