Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: "GitHub Pages"
on:
push:
branches: main
# Skip changes that don’t affect the site
paths-ignore:
- "**.md"
- ".github/**"
- "backtest/**"
- "tests/**"

permissions:
contents: read
Expand Down Expand Up @@ -34,7 +40,7 @@ jobs:
- name: "Upload build artifact"
uses: actions/upload-pages-artifact@v5
with:
path: "./demo/build"
path: "demo/build"
deploy:
runs-on: ubuntu-latest
needs: build
Expand Down
26 changes: 5 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Tests"

on:
push:
branches: [main]
branches: main
paths-ignore: ["**.md"]
pull_request:
paths-ignore: ["**.md"]
Expand Down Expand Up @@ -37,25 +37,9 @@ jobs:
cache: npm
- name: "Install dependencies"
run: npm ci
- name: "Run tests"
run: npm test

test-macos:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
strategy:
matrix:
node: ["lts/*", "current"]
name: "Node ${{ matrix.node }} (macOS)"
runs-on: macos-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
- name: "Install dependencies"
run: npm ci
- name: "Lint"
# Lint results don’t vary by platform or Node version
if: matrix.platform == 'ubuntu-latest' && matrix.node == 'lts/*'
run: npm run lint
Comment thread
coderabbitai[bot] marked this conversation as resolved.
- name: "Run tests"
run: npm test