Trying to fix the check drift Github Action workflow. #14
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: DocGap Check | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| check-drift: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: 9 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Build Core | |
| run: pnpm --filter @docgap/core build | |
| - name: Build Action | |
| run: pnpm --filter @docgap/action build | |
| - name: Run DocGap Action (Self-Test) | |
| # We run the built action script directly using node | |
| # This simulates the action running in the repo | |
| run: node apps/action/dist/index.js | |
| env: | |
| GITHUB_WORKSPACE: ${{ github.workspace }} | |
| INPUT_CONFIG: .docgap.yaml | |
| INPUT_STRICT: false |