setup hasura-graphql-template #46
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: Portal CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| - "features/*" | |
| jobs: | |
| build-and-test: | |
| name: Build and Check | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/portal | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| cache: "yarn" | |
| cache-dependency-path: "apps/portal/yarn.lock" | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Run Prettier check | |
| run: yarn prettier:check | |
| - name: Run TypeScript check | |
| run: yarn tsc | |
| - name: Run build | |
| run: yarn build:all |