testing2 (#73) #235
This file contains hidden or 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: fern-check | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 # Action to install Node.js and npm | |
| with: | |
| node-version: '24' # Specify the Node.js version | |
| cache: 'npm' # Enables automatic dependency caching for faster installs | |
| - name: Install dependencies | |
| run: npm ci # Use 'npm ci' for clean installs in CI/CD environments | |
| - name: Install Fern CLI tool | |
| run: npm install -g fern-api | |
| - name: Check API is valid | |
| run: fern check | |
| - name: Check for broken links | |
| run: fern docs broken-links --strict |