Merge branch 'main' into ajiang/globalheaders #2074
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: CI | |
on: | |
push: | |
branches: | |
- "**" | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: "buildwithfern" | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 # This helps turbo resolve changes faster | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Codegen | |
run: | | |
npm install -g fern-api | |
- name: Compile and build | |
run: pnpm turbo compile codegen build | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
WORKOS_API_KEY: ${{ secrets.WORKOS_API_KEY }} | |
WORKOS_CLIENT_ID: ${{ secrets.WORKOS_CLIENT_ID }} | |
- name: Check dependencies | |
run: pnpm depcheck | |
- name: Check format | |
run: pnpm format:check | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 # This helps turbo resolve changes faster | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Lint monorepo | |
run: pnpm lint:monorepo | |
- name: Lint style and eslint | |
run: pnpm turbo lint:style lint:eslint format:check | |
organize-imports: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 # This helps turbo resolve changes faster | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Organize imports | |
# not using --list-different because sometimes this removes a trailing | |
# comma that prettier adds back | |
run: | | |
pnpm organize-imports | |
git --no-pager diff --exit-code | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 # This helps turbo resolve changes faster | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Codegen | |
run: | | |
pnpm fern generate --local | |
pnpm turbo --filter=@fern-platform/fdr codegen | |
- name: Setup database | |
# TODO: re-enable when moving to turbo | |
# pnpm turbo --filter= docker:local | |
run: | | |
pnpm --filter=@fern-platform/fdr test-db | |
pnpm --filter=@fern-platform/fdr test-ete | |
- name: Run tests | |
run: pnpm test | |
env: | |
CI: true | |
- name: Ensure no changes to git-tracked files | |
run: git --no-pager diff --exit-code | |
check-docs-release-is-allowed: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 # This helps turbo resolve changes faster | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Check release blockers | |
run: pnpm check-docs-release-blockers |