Skip to content

Commit

Permalink
chore(internal): improve CI/CD naming (#5821)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysheridan authored Feb 2, 2025
1 parent 67c275f commit c8d7822
Show file tree
Hide file tree
Showing 46 changed files with 104 additions and 164 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: CI

on:
push:
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
outputs:
typescript: ${{ steps.filter.outputs.typescript }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: filter
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
release-cli:
run:
if: github.repository == 'fern-api/fern'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.VERSION }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: fern
name: Validate Fern Definitions

on:
pull_request:
Expand All @@ -8,7 +8,7 @@ on:
- main

jobs:
check-definitions:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -28,4 +28,3 @@ jobs:
pnpm --filter @fern-api/cli dist:cli:prod
cli_path="$(pwd)/packages/cli/cli/dist/prod/cli.cjs"
node $cli_path check
2 changes: 1 addition & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: dependabot
name: Dependabot

on:
pull_request:
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/fhir.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/go-generator.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: go
name: Go Generator

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: IR SDKs
name: Release IR SDKs

on:
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: IR Check
name: IR Validation

on:
workflow_dispatch:
Expand All @@ -14,7 +14,7 @@ on:
- main

jobs:
check:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/java-generator.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: java
name: Java Generator

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Lint PR Title"
name: Lint PR Title

on:
pull_request_target:
Expand Down Expand Up @@ -44,6 +44,8 @@ jobs:
openapi
deps
deps-dev
fiber
pydantic
requireScope: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: OpenAPI IR Check
name: Validate OpenAPI IR

on:
workflow_dispatch:
Expand All @@ -14,7 +14,7 @@ on:
- main

jobs:
check:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Install
uses: ./.github/actions/install

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

- name: Check IR Definitions
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/preview-docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: preview-docs
name: Preview Docs

on:
pull_request_target:
branches:
- main
paths:
- 'fern/**'
- 'packages/cli/docs-**'
paths:
- "fern/**"
- "packages/cli/docs-**"
workflow_dispatch:
inputs:
prNumber:
Expand All @@ -18,8 +18,8 @@ jobs:
run:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Only for commenting
contents: read # For checking out code
pull-requests: write # Only for commenting
contents: read # For checking out code
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -67,4 +67,3 @@ jobs:
-X PATCH \
-f "body"="🌿 Preview your docs: [$PREVIEW_URL]($PREVIEW_URL)"
fi
8 changes: 4 additions & 4 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Dev + Prod CLIs
name: Publish Fern CLI

on:
push:
Expand All @@ -12,7 +12,7 @@ on:
type: string

jobs:
publish-dev:
dev:
if: ${{ inputs.version == null && github.repository == 'fern-api/fern' }}
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
cli_path="$(pwd)/packages/cli/cli/dist/prod/cli.cjs"
./scripts/live-test.sh "$cli_path" "$FERN_TOKEN"
publish:
prod:
needs: [live-test]
if: ${{ inputs.version == null }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
pnpm seed publish cli --changelog packages/cli/cli/versions.yml --previous-changelog tmp_cli_previous_versions.yml --log-level debug
pnpm seed register cli
publish-manually:
manual:
runs-on: ubuntu-latest
if: ${{ inputs.version != null }}
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish-docs-parsers-fern-definition
name: Publish @fern-fern/docs-parsers-fern-definition

on:
workflow_dispatch:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: publish-docs
name: Publish Docs

on:
workflow_dispatch: # Added manual trigger
push:
paths:
- "fern/**"
Expand All @@ -17,9 +16,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout repo
uses: actions/checkout@v4

- name: Install
uses: ./.github/actions/install

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-generator-csharp-model.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generators are registered within seed.yml, once their tests are passing
name: publish-and-register-csharp-model
name: Publish C# Model Generator

on:
push:
Expand All @@ -18,7 +18,7 @@ env:
DOCKER_BUILDKIT: 1

jobs:
publish-changed-generators:
run:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
# Manually publish and register generators
# The logic is identical to the step above, but could not find a good way to work with the matrix AND manual trigger in one job
publish-manually:
manual:
runs-on: ubuntu-latest
# Only run this job if this has been triggered manually
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-generator-csharp-sdk.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generators are registered within seed.yml, once their tests are passing
name: publish-and-register-csharp-sdk
name: Publish C# SDK Generator

on:
push:
Expand All @@ -18,7 +18,7 @@ env:
DOCKER_BUILDKIT: 1

jobs:
publish-changed-generators:
run:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
# Manually publish and register generators
# The logic is identical to the step above, but could not find a good way to work with the matrix AND manual trigger in one job
publish-manually:
manual:
runs-on: ubuntu-latest
# Only run this job if this has been triggered manually
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-generator-go-fiber.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generators are registered within seed.yml, once their tests are passing
name: publish-and-register-go-fiber
name: Publish Go Fiber Generator

on:
push:
Expand All @@ -18,7 +18,7 @@ env:
DOCKER_BUILDKIT: 1

jobs:
publish-changed-generators:
run:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
# Manually publish and register generators
# The logic is identical to the step above, but could not find a good way to work with the matrix AND manual trigger in one job
publish-manually:
manual:
runs-on: ubuntu-latest
# Only run this job if this has been triggered manually
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-generator-go-model.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generators are registered within seed.yml, once their tests are passing
name: publish-and-register-go-model
name: Publish Go Model Generator

on:
push:
Expand All @@ -18,7 +18,7 @@ env:
DOCKER_BUILDKIT: 1

jobs:
publish-changed-generators:
run:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
# Manually publish and register generators
# The logic is identical to the step above, but could not find a good way to work with the matrix AND manual trigger in one job
publish-manually:
manual:
runs-on: ubuntu-latest
# Only run this job if this has been triggered manually
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-generator-go-sdk.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generators are registered within seed.yml, once their tests are passing
name: publish-and-register-go-sdk
name: Publish Go SDK Generator

on:
push:
Expand All @@ -18,7 +18,7 @@ env:
DOCKER_BUILDKIT: 1

jobs:
publish-changed-generators:
run:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
# Manually publish and register generators
# The logic is identical to the step above, but could not find a good way to work with the matrix AND manual trigger in one job
publish-manually:
manual:
runs-on: ubuntu-latest
# Only run this job if this has been triggered manually
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-generator-java-model.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generators are registered within seed.yml, once their tests are passing
name: publish-and-register-java-model
name: Publish Java Model Generator

on:
push:
Expand All @@ -18,7 +18,7 @@ env:
DOCKER_BUILDKIT: 1

jobs:
publish-changed-generators:
run:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
# Manually publish and register generators
# The logic is identical to the step above, but could not find a good way to work with the matrix AND manual trigger in one job
publish-manually:
manual:
runs-on: ubuntu-latest
# Only run this job if this has been triggered manually
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand Down
Loading

0 comments on commit c8d7822

Please sign in to comment.