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
76 changes: 66 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,87 @@ env:

on:
push:
branches:
- main
- release-c-layout-order-planner
branches: [main]
pull_request:
branches:
- main
- release-c-layout-order-planner
branches: [main]

permissions:
contents: read

jobs:
Comment thread
magmacomputing marked this conversation as resolved.
test:
library:
name: Library Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
Comment thread
magmacomputing marked this conversation as resolved.
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install monorepo dependencies
run: npm ci
- name: Run library tests
run: npm test --workspace=@magmacomputing/library

tempo:
name: Standard Tests
runs-on: ubuntu-latest
timeout-minutes: 30
needs: library
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install monorepo dependencies
run: npm ci
working-directory: ${{ github.workspace }}
- name: Run standard tests
run: npm test
working-directory: packages/tempo

plugins:
name: Plugin Tests
runs-on: ubuntu-latest
timeout-minutes: 15
needs: tempo
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install monorepo dependencies
run: npm ci
- name: Build Core
run: npm run build:tempo
- name: Run plugin tests
run: npm test --if-present --workspace=@magmacomputing/tempo-plugin-snap --workspace=@magmacomputing/tempo-plugin-batch --workspace=@magmacomputing/tempo-plugin-finance --workspace=@magmacomputing/tempo-plugin-astro --workspace=@magmacomputing/tempo-plugin-sync --workspace=@magmacomputing/tempo-plugin-ticker
working-directory: packages/plugins

functions:
name: Functions Tests
runs-on: ubuntu-latest
timeout-minutes: 15
needs: tempo
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install monorepo dependencies
run: npm ci
- name: Build Core
run: npm run build:tempo
- name: Run functions tests
run: npm test --workspace=@magmacomputing/tempo-fns
6 changes: 3 additions & 3 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Trigger only on changes to tempo package or this workflow
paths:
- 'packages/tempo/**'
- 'packages/tempo-fns/**'
- 'packages/functions/**'
- '.github/workflows/deploy-docs.yml'
- 'package.json'
- 'package-lock.json'
Expand Down Expand Up @@ -56,8 +56,8 @@ jobs:

- name: Merge Documentation Sites
run: |
mkdir -p packages/tempo/.vitepress/dist/tempo-fns
cp -r packages/tempo-fns/doc/.vitepress/dist/* packages/tempo/.vitepress/dist/tempo-fns/
mkdir -p packages/tempo/.vitepress/dist/functions
cp -r packages/functions/doc/.vitepress/dist/* packages/tempo/.vitepress/dist/functions/
- name: Setup Pages
uses: actions/configure-pages@v4

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Thumbs.db
**/.vitepress/cache/
**/.vitepress/dist/
**/doc/api/

**/doc/9-plugins/
# Secrets and credentials
.env
.env.*
Expand Down
Loading
Loading