|
6 | 6 | BASE_IMAGE: ghcr.io/graphprotocol/graph-docs-staging
|
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - build: |
| 9 | + lint: |
| 10 | + if: contains(github.head_ref, 'crowdin') == false |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Cancel Previous Runs |
| 14 | + |
| 15 | + with: |
| 16 | + access_token: ${{ github.token }} |
| 17 | + |
| 18 | + - name: Check out the repo |
| 19 | + uses: actions/checkout@v4 |
| 20 | + |
| 21 | + - name: Set up env |
| 22 | + uses: the-guild-org/shared-config/setup@main |
| 23 | + with: |
| 24 | + nodeVersion: 20 |
| 25 | + packageManager: pnpm |
| 26 | + |
| 27 | + - name: Install dependencies |
| 28 | + run: pnpm install |
| 29 | + |
| 30 | + - name: Lint |
| 31 | + run: pnpm lint |
| 32 | + |
| 33 | + format: |
| 34 | + if: contains(github.head_ref, 'crowdin') == false |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - name: Cancel Previous Runs |
| 38 | + |
| 39 | + with: |
| 40 | + access_token: ${{ github.token }} |
| 41 | + |
| 42 | + - name: Check out the repo |
| 43 | + uses: actions/checkout@v4 |
| 44 | + |
| 45 | + - name: Set up env |
| 46 | + uses: the-guild-org/shared-config/setup@main |
| 47 | + with: |
| 48 | + nodeVersion: 20 |
| 49 | + packageManager: pnpm |
| 50 | + |
| 51 | + - name: Install dependencies |
| 52 | + run: pnpm install |
| 53 | + |
| 54 | + - name: Check formatting |
| 55 | + run: pnpm prettier:check |
| 56 | + |
| 57 | + typecheck: |
10 | 58 | if: contains(github.head_ref, 'crowdin') == false
|
11 | 59 | runs-on: ubuntu-latest
|
12 | 60 | steps:
|
|
27 | 75 | - name: Install dependencies
|
28 | 76 | run: pnpm install
|
29 | 77 |
|
30 |
| - - name: Lint and typecheck |
31 |
| - run: pnpm check |
| 78 | + - name: Typecheck |
| 79 | + run: pnpm typecheck |
| 80 | + |
| 81 | + build: |
| 82 | + if: contains(github.head_ref, 'crowdin') == false |
| 83 | + runs-on: ubuntu-latest |
| 84 | + needs: [lint, format, typecheck] |
| 85 | + steps: |
| 86 | + - name: Cancel Previous Runs |
| 87 | + |
| 88 | + with: |
| 89 | + access_token: ${{ github.token }} |
| 90 | + |
| 91 | + - name: Check out the repo |
| 92 | + uses: actions/checkout@v4 |
| 93 | + |
| 94 | + - name: Set up env |
| 95 | + uses: the-guild-org/shared-config/setup@main |
| 96 | + with: |
| 97 | + nodeVersion: 20 |
| 98 | + packageManager: pnpm |
| 99 | + |
| 100 | + - name: Install dependencies |
| 101 | + run: pnpm install |
32 | 102 |
|
33 | 103 | - name: Build Docker image
|
34 | 104 | uses: docker/build-push-action@v5
|
|
0 commit comments