Skip to content

website: various router tweaks (#4171) #210

website: various router tweaks (#4171)

website: various router tweaks (#4171) #210

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: 'package.json'
check-latest: true
- name: Install dependencies
run: npm ci
- name: Lint
run: |
node --run lint
node --run lint:md
- name: Format
run: node --run format:check
- name: Build lib
run: node --run build
- name: Build website
run: node --run build:website
- name: Check routeTree.gen.ts
run: git diff --exit-code website/routeTree.gen.ts
- name: Install Playwright Browsers
run: |
sudo tee /etc/apt/apt.conf.d/99-ci >/dev/null <<'EOF'
Acquire::Retries "0";
Acquire::http::Timeout "10";
Acquire::https::Timeout "10";
EOF
npx playwright install chromium firefox webkit --with-deps --no-shell
timeout-minutes: 2
- name: Test
run: node --run test:ci
timeout-minutes: 4
- name: Upload test failure artifacts
if: failure()
uses: actions/upload-artifact@v7
with:
name: test-artifacts
path: .vitest/attachments/**
if-no-files-found: ignore
- name: Upload coverage
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Deploy gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
git config --global user.email 'action@github.com'
git config --global user.name 'GitHub Action'
git fetch origin gh-pages
git worktree add gh-pages gh-pages
cd gh-pages
git rm -r .
mv ../dist/* .
touch .nojekyll
git add .
git commit -m "gh-pages deployment" || echo "Nothing to commit"
git push -f https://comcast:${{secrets.GITHUB_TOKEN}}@github.com/Comcast/react-data-grid.git