Skip to content

Commit

Permalink
Merge branch 'fern-api:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkonigsberg authored Feb 26, 2024
2 parents 7d98713 + 9f1b284 commit dd049be
Show file tree
Hide file tree
Showing 2,485 changed files with 362,824 additions and 305,014 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ generated
bundle.c?js
.pnp*
packages/ir-sdk/**
packages/cli/openapi-ir-sdk/**
packages/seed/**
generators/typescript/utils/core-utilities/**
seed/**
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,28 +87,6 @@ jobs:
- name: lint:eslint
run: yarn lint:eslint

check-test-definitions:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Install Deps
run: yarn install

- name: Fern check
env:
FORCE_COLOR: "2"
run: |
yarn workspace @fern-api/cli dist:cli:dev
cd test-definitions
FERN_NO_VERSION_REDIRECTION=true node $(yarn workspace @fern-api/cli bin fern:dev) check
test:
runs-on: CLI
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ir-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ir
name: IR Check

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ir-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ir-publish
name: IR Publish

on:
workflow_dispatch:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/openapi-ir-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: OpenAPI IR Check

on:
workflow_dispatch:
pull_request:
paths:
- "packages/cli/openapi-ir-sdk/fern/**"
branches:
- main
push:
paths:
- "packages/cli/openapi-ir-sdk/fern/**"
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Fern
run: npm install -g fern-api

- name: Check IR Definitions
run: |
cd packages/cli/openapi-ir-sdk
fern check
- name: Check IR Definitions
env:
FERN_TOKEN: dummy
run: |
cd packages/cli/openapi-ir-sdk
yarn generate
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
77 changes: 77 additions & 0 deletions .github/workflows/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
postman: ${{ steps.filter.outputs.postman }}
java: ${{ steps.filter.outputs.java }}
typescript: ${{ steps.filter.outputs.typescript }}
go: ${{ steps.filter.outputs.go }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
Expand All @@ -41,6 +42,7 @@ jobs:
postman: 'generators/postman/**'
java: 'generators/java/**'
typescript: 'generators/typescript/**'
go: 'generators/go/**'
ruby-model:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -368,3 +370,78 @@ jobs:
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code

go-fiber:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Yarn Install
run: yarn install

- name: Seed Test
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace go-fiber --parallel 16
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code

go-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Yarn Install
run: yarn install

- name: Seed Test
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace go-model --parallel 16
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code

go-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Yarn Install
run: yarn install

- name: Seed Test
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace go-sdk --parallel 16
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
43 changes: 43 additions & 0 deletions .github/workflows/test-definitions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test-definitions

on:
push:
paths:
- "packages/**"
- "test-definitions/**"
branches:
- main
pull_request:
paths:
- "packages/**"
- "test-definitions/**"
branches:
- main

# Cancel previous workflows on previous push
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Install Deps
run: yarn install

- name: Fern check
env:
FORCE_COLOR: "2"
run: |
yarn workspace @fern-api/cli dist:cli:dev
cd test-definitions
FERN_NO_VERSION_REDIRECTION=true node $(yarn workspace @fern-api/cli bin fern:dev) check
Loading

0 comments on commit dd049be

Please sign in to comment.