Refactor codegen.ts to include noGraphQLTag option #101
Workflow file for this run
This file contains 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: Test | |
env: | |
REDIS_URL: ${{ secrets.REDIS_URL }} | |
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }} | |
TEST_AUTH_TOKEN: ${{ secrets.TEST_AUTH_TOKEN }} | |
TEST_SUSPENDED_AUTH_TOKEN: ${{ secrets.TEST_SUSPENDED_AUTH_TOKEN }} | |
LENS_DATABASE_PASSWORD: ${{ secrets.LENS_DATABASE_PASSWORD }} | |
CLICKHOUSE_URL: ${{ secrets.CLICKHOUSE_URL }} | |
CLICKHOUSE_PASSWORD: ${{ secrets.CLICKHOUSE_PASSWORD }} | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
api-test: | |
name: API Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🚪 | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js, pnpm and dependencies 🌸 | |
uses: ./.github/actions/setup-pnpm | |
- name: Flush Redis 🧹 | |
working-directory: ./packages/db | |
run: pnpm redis:flush | |
- name: Seed DB 🌱 | |
working-directory: ./packages/db | |
run: pnpm prisma:seed | |
# - name: Run API Tests 🧪 | |
# working-directory: ./apps/api | |
# run: pnpm test | |
web-test: | |
name: Web Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🚪 | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js, pnpm and dependencies 🌸 | |
uses: ./.github/actions/setup-pnpm | |
- name: Run Web Tests 🧪 | |
working-directory: ./apps/web | |
run: pnpm test | |
og-test: | |
name: OG Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🚪 | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js, pnpm and dependencies 🌸 | |
uses: ./.github/actions/setup-pnpm | |
- name: Run OG Tests 🧪 | |
working-directory: ./apps/og | |
run: pnpm test | |
data-test: | |
name: Data Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🚪 | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js, pnpm and dependencies 🌸 | |
uses: ./.github/actions/setup-pnpm | |
- name: Run Data Tests 🧪 | |
working-directory: ./packages/data | |
run: pnpm test | |
helpers-test: | |
name: Helpers Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🚪 | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js, pnpm and dependencies 🌸 | |
uses: ./.github/actions/setup-pnpm | |
- name: Run Helpers Tests 🧪 | |
working-directory: ./packages/helpers | |
run: pnpm test |