diff --git a/.github/workflows-disabled/fern_check.yml b/.github/workflows-disabled/fern_check.yml deleted file mode 100644 index 06998a42..00000000 --- a/.github/workflows-disabled/fern_check.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Fern Check - -on: - pull_request: - push: - branches: - - main - -jobs: - run: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 - - - name: Install Fern - run: pnpm add -g fern-api@5.65.3 - - - name: Check API is valid - run: fern check diff --git a/.github/workflows/fern_check.yml b/.github/workflows/fern_check.yml new file mode 100644 index 00000000..c4699881 --- /dev/null +++ b/.github/workflows/fern_check.yml @@ -0,0 +1,34 @@ +name: Fern Check + +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + run: + name: Fern Check + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Install pnpm + uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 + + - name: Install Fern + run: pnpm add -g fern-api@5.65.3 + + - name: Check API is valid + run: fern check