Skip to content

test: do not merge #4413

test: do not merge

test: do not merge #4413

Workflow file for this run

name: Run Codegen
on:
pull_request:
types: [opened, reopened, review_requested, ready_for_review, synchronize]
workflow_dispatch:
inputs:
api_branch:
description: Api Branch
required: true
default: 'main'
jobs:
codegen:
if: github.event.pull_request.draft == false
name: Run Codegen
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Checkout API Git repository
uses: actions/checkout@v4
with:
repository: getlago/lago-api
ref: ${{ github.event.inputs.api_branch }}
path: api
- name: Build API local image
run: |
docker build -t getlago/api:ci ./api
- name: Generate API RSA Key
run: |
echo "LAGO_RSA_PRIVATE_KEY=\"`openssl genrsa 2048 | base64`\"" >> .env
- name: Launch API
run: docker compose -f ./ci/docker-compose.ci.yml --env-file ./.env up -d api
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Node.js dependencies
run: yarn
- name: Run codegen
env:
CODEGEN_API_CUSTOMER_PORTAL: http://localhost:3000/customer_portal/graphql
CODEGEN_API_GRAPHQL: http://localhost:3000/api/graphql
run: |
yarn codegen
- name: Run Typescript
run: yarn tsc