Add Napper documentation website with GitHub Pages deployment #3
Workflow file for this run
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: PR Checks | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint-and-test-ts: | |
| name: TypeScript Lint & Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: src/Nap.VsCode | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build CLI, compile extension & tests | |
| run: npm run pretest | |
| - name: Unit tests | |
| run: npm run test:unit | |
| - name: E2E tests | |
| run: xvfb-run --auto-servernum npm test | |
| test-fsharp: | |
| name: F# Build & Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - name: Build | |
| run: dotnet build --nologo | |
| - name: Test | |
| run: dotnet test --nologo --verbosity normal | |
| build-website: | |
| name: Website Build | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: website | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npx eleventy |