-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (87 loc) · 2.44 KB
/
Copy pathci.yml
File metadata and controls
94 lines (87 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Tempo CI
env:
TZ: America/New_York
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
TEMPO_LICENSE_KEY: ""
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
library:
name: Library Tests
runs-on: ubuntu-latest
timeout-minutes: 15
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: 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
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install monorepo dependencies
run: npm ci
- 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 --workspace=@magmacomputing/tempo-plugin-ai
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