fix: resolve admin frontend type errors in CreateRedemptionCodeDialog… #752
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: | |
| push: | |
| branches: [main, develop] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
| NODE_VERSION: 20 | |
| PNPM_VERSION: 9.12.2 | |
| jobs: | |
| quality: | |
| name: Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Runner info | |
| run: | | |
| echo "RUNNER_NAME=$RUNNER_NAME" | |
| echo "RUNNER_OS=$RUNNER_OS" | |
| echo "RUNNER_ARCH=$RUNNER_ARCH" | |
| uname -a | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Typecheck | |
| run: pnpm turbo run typecheck | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Runner info | |
| run: | | |
| echo "RUNNER_NAME=$RUNNER_NAME" | |
| echo "RUNNER_OS=$RUNNER_OS" | |
| echo "RUNNER_ARCH=$RUNNER_ARCH" | |
| uname -a | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Fetch base branch (PR only) | |
| if: github.event_name == 'pull_request' | |
| run: git fetch origin ${{ github.base_ref }} --depth=1 | |
| - name: Run tests (changed packages) | |
| if: github.event_name == 'pull_request' | |
| run: pnpm turbo run test:unit --concurrency=4 --filter=...[origin/${{ github.base_ref }}] | |
| - name: Run tests (full) | |
| if: github.event_name != 'pull_request' | |
| run: pnpm turbo run test:unit --concurrency=4 | |
| deploy-smoke: | |
| name: Deploy Smoke | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Runner info | |
| run: | | |
| echo "RUNNER_NAME=$RUNNER_NAME" | |
| echo "RUNNER_OS=$RUNNER_OS" | |
| echo "RUNNER_ARCH=$RUNNER_ARCH" | |
| uname -a | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Verify Anyhunt server production deploy | |
| run: | | |
| rm -rf /tmp/ci-anyhunt-server-deploy | |
| pnpm --filter @anyhunt/anyhunt-server deploy --prod /tmp/ci-anyhunt-server-deploy | |
| - name: Verify Moryflow server production deploy | |
| run: | | |
| rm -rf /tmp/ci-moryflow-server-deploy | |
| pnpm --filter @moryflow/server deploy --prod /tmp/ci-moryflow-server-deploy | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| needs: [quality, unit-tests, deploy-smoke] | |
| if: github.event_name != 'pull_request' | |
| steps: | |
| - name: Runner info | |
| run: | | |
| echo "RUNNER_NAME=$RUNNER_NAME" | |
| echo "RUNNER_OS=$RUNNER_OS" | |
| echo "RUNNER_ARCH=$RUNNER_ARCH" | |
| uname -a | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Build | |
| env: | |
| TURBO_CONCURRENCY: 2 | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| run: pnpm build |