Feat/query mutation #13
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - "main" | |
| env: | |
| APP_GRAPHQL_CODEGEN_ENDPOINT: "./backend/schema.graphql" | |
| APP_GRAPHQL_ENDPOINT: "http://web:8000/graphql/" | |
| APP_TITLE: "Nrcs CMS" | |
| GITHUB_WORKFLOW: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| env: | |
| PIPELINE_TYPE: ci | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Generate Type | |
| run: pnpm generate:type | |
| - name: Lint | |
| run: pnpm lint | |
| build: | |
| name: Build | |
| needs: [lint] | |
| runs-on: ubuntu-latest | |
| env: | |
| PIPELINE_TYPE: ci | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: pnpm/action-setup@v4 | |
| name: Install pnpm | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Generate Type | |
| run: pnpm generate:type | |
| - name: Build | |
| run: pnpm build |