Skip to content

Updates to the GitHub Actions. #8

Updates to the GitHub Actions.

Updates to the GitHub Actions. #8

Workflow file for this run

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