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
20 changes: 10 additions & 10 deletions .github/workflows/jseval-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: jsEval Tests CI
on:
pull_request:
paths:
- 'packages/jsEval/**'
- '.github/workflows/jseval-tests.yml'
- "packages/jsEval/**"
- ".github/workflows/jseval-tests.yml"
jobs:
test-js-eval:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run --filter @my-code/js-eval test
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run --filter @my-code/js-eval test
81 changes: 48 additions & 33 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,81 @@
name: Node.js CI
on:
pull_request:
branches: [ "main" ]
branches: ["main"]
permissions:
contents: read
jobs:
format:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm exec prettier --check .

lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run lint

types:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run tsc
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run tsc

test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run test
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run test

check-docs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm ci
- run: pnpm exec tsx ./scripts/checkDocs.ts
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm ci
- run: pnpm exec tsx ./scripts/checkDocs.ts
4 changes: 2 additions & 2 deletions .github/workflows/question-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate Question Examples

on:
pull_request:
branches: [ "main" ]
branches: ["main"]
# paths:
# - 'public/docs/**'

Expand All @@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache: "pnpm"
- run: pnpm install --frozen-lockfile

- run: pnpm exec tsx ./scripts/questionExample.ts 4
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/runtime-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: Runtime Tests CI
on:
pull_request:
paths:
- 'packages/runtime/**'
- '.github/workflows/runtime-tests.yml'
- "packages/runtime/**"
- ".github/workflows/runtime-tests.yml"
jobs:
test-runtime:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run --filter @my-code/runtime test
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run --filter @my-code/runtime test
52 changes: 26 additions & 26 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Update Docs Revision And Database
on:
push:
branches: [ "main" ]
branches: ["main"]
permissions:
contents: write
concurrency:
Expand All @@ -14,28 +14,28 @@ jobs:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm exec drizzle-kit migrate
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- run: pnpm exec tsx ./scripts/checkDocs.ts --write
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- name: Configure git for push
run: |
git remote set-url origin "https://github-actions:${GITHUB_TOKEN}@github.com/${{ github.repository }}"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit build output
run: |
git add .
git diff --staged --exit-code || (git commit -m "[ci] update revisions.yml" && git push origin main)
# The `||` ensures the commit and push only happen if there are changes (git diff exits with non-zero)
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm exec drizzle-kit migrate
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- run: pnpm exec tsx ./scripts/checkDocs.ts --write
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- name: Configure git for push
run: |
git remote set-url origin "https://github-actions:${GITHUB_TOKEN}@github.com/${{ github.repository }}"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit build output
run: |
git add .
git diff --staged --exit-code || (git commit -m "[ci] update revisions.yml" && git push origin main)
# The `||` ensures the commit and push only happen if there are changes (git diff exits with non-zero)
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/public/docs/
/drizzle/meta/
pnpm-*
Loading
Loading