-
Notifications
You must be signed in to change notification settings - Fork 163
92 lines (78 loc) · 1.79 KB
/
ci-fast-test.yml
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
name: CI Fast (test)
on:
push:
branches:
- main
pull_request:
jobs:
test-core:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Rust tests in quadratic-core
run: |
cd quadratic-core
cargo test
test-client-unit:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Run npm test:ci in quadratic-client
run: |
cd quadratic-client
npm install
npm run test:unit
test-client-python:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Test python
run: |
pip install -r requirements.txt
cd quadratic-client
npm run test:python
test-api-unit:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Run npm test:ci in quadratic-client
run: |
cd quadratic-api
npm install
npm run docker:test:ci
lint-rust:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo clippy in quadratic-core
run: |
cd quadratic-core
cargo clippy -- -D warnings
lint-client:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Build wasm core
run: |
cd quadratic-client
npm run build:wasm:nodejs
npm run build:wasm:types
- name: Lint quadratic-client
run: |
cd quadratic-client
npm install
npm run lint:prettier
npm run lint:eslint
npm run lint:ts