Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP transactions #912

Merged
merged 285 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
285 commits
Select commit Hold shift + click to select a range
79211de
Cleanup
ddimaria Dec 5, 2023
4785bfb
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 5, 2023
3d5c23d
Braodcast to remaining users in the room after removing stale users
ddimaria Dec 5, 2023
020d6ed
move rust multiplayer test to ci file
davidkircos Dec 5, 2023
a232c8b
attempt fix heroku
davidkircos Dec 5, 2023
6cecd3e
working through updated messages
davidfig Dec 5, 2023
9b6ef79
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidfig Dec 5, 2023
0a7ed85
deploy multiplayer to heroku app
davidkircos Dec 5, 2023
8937a02
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidkircos Dec 5, 2023
6a70c20
updated mp tests
davidfig Dec 5, 2023
6b082f9
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidfig Dec 5, 2023
f016278
test
davidkircos Dec 5, 2023
eead50b
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidkircos Dec 5, 2023
25ebabf
test
davidkircos Dec 5, 2023
28b7af1
fix build heroku
jimniels Dec 5, 2023
593c1ce
Remove users from rooms on disconnect and broadcast to rooms
ddimaria Dec 5, 2023
502770b
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 5, 2023
0fe8e11
heartbeat and script updates
davidfig Dec 6, 2023
bc1e87f
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidfig Dec 6, 2023
dba75ba
Covnert Room response to UsersInRoom
ddimaria Dec 6, 2023
4b269d3
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 6, 2023
95742d2
Fix lints
ddimaria Dec 6, 2023
f797b42
Convert Room to UsersInRoom in TS
ddimaria Dec 6, 2023
a822db0
adding more messages
davidfig Dec 6, 2023
1a4014a
Remove unsave unwraps
ddimaria Dec 6, 2023
4ddbba8
Remove unsafe unwraps
ddimaria Dec 6, 2023
361a83f
Resolve conflicts
ddimaria Dec 6, 2023
ae1f89a
Remove unwrap
ddimaria Dec 6, 2023
626af72
refactor rust stuff
davidfig Dec 6, 2023
b85e7d8
Some comments
ddimaria Dec 6, 2023
5147707
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 6, 2023
ce39473
Fix broken things
ddimaria Dec 6, 2023
839b60f
Reorganize things
ddimaria Dec 6, 2023
1a0f563
Separate out UserState
ddimaria Dec 6, 2023
9f192f8
Change UserUpdate to UserState
ddimaria Dec 6, 2023
64b85e9
Simplify user state
ddimaria Dec 6, 2023
7f3d37b
Rename internal_session_id to socket_id
ddimaria Dec 6, 2023
a507ce8
Put sockets in a separate file
ddimaria Dec 6, 2023
cbe0fc7
Rename socket to connection
ddimaria Dec 6, 2023
a213507
Remove unused
ddimaria Dec 6, 2023
a424e8b
ci updates
davidkircos Dec 6, 2023
6094936
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidkircos Dec 6, 2023
bab3ac9
fix TS
davidfig Dec 6, 2023
0d8be06
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidfig Dec 6, 2023
91f8cc1
Cleanup
ddimaria Dec 6, 2023
88cb1be
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 6, 2023
544e408
Fix errors in tests are merge
ddimaria Dec 6, 2023
2fc896c
Add file_id to transaction response
ddimaria Dec 6, 2023
941936e
Clean up broadcast error message in logs
ddimaria Dec 6, 2023
c05b64c
don't send Empty message
davidfig Dec 6, 2023
a26ef89
Fix issue where users not being removed from rooms on disconnect
ddimaria Dec 6, 2023
05e8e8a
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 6, 2023
8e3cbcd
fixing TS issues
davidfig Dec 6, 2023
0777480
basic avatar support
davidfig Dec 6, 2023
970be75
Only broadcast UsersInRoom for heartbeat checks that remove users in …
ddimaria Dec 6, 2023
0cb8615
fix preview
davidkircos Dec 6, 2023
ca3ad5f
fix avatar bar
davidfig Dec 6, 2023
c5b3f0c
fixes to when/how multiplayer.ts runs
davidfig Dec 7, 2023
c261c5c
fixed sheet mutli-sheet rendering bug
davidfig Dec 7, 2023
ea16e6f
fix offsets issue with charts
davidfig Dec 7, 2023
ba42cf1
improved rejoining rooms
davidfig Dec 7, 2023
fad1c88
fix bug with UserState replacing state on update
davidfig Dec 7, 2023
8f110d8
remove console.log
davidfig Dec 7, 2023
b2859cf
removing unnecessary trace
davidfig Dec 7, 2023
1993d97
selection is sent when entering room
davidfig Dec 7, 2023
3869ca4
fix test
davidfig Dec 7, 2023
c0b9d62
fix ci
davidkircos Dec 7, 2023
a896ea8
fix preview
davidkircos Dec 7, 2023
66abb44
Validate JWT from the client
ddimaria Dec 7, 2023
5e45126
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 7, 2023
227b498
Test auth
ddimaria Dec 7, 2023
03ed9cc
test state:connection
ddimaria Dec 7, 2023
bde03b2
cell edit
davidfig Dec 7, 2023
6b0d193
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidfig Dec 7, 2023
283bdee
Test removes_stale_users_in_room
ddimaria Dec 7, 2023
405528c
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 7, 2023
63503e6
Merge pull request #920 from quadratichq/fix-charts-sheet-placement
davidkircos Dec 7, 2023
a51d7aa
tweaks
davidfig Dec 7, 2023
0da4db2
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidfig Dec 7, 2023
e63c27f
lock the cell when it is being edited
davidfig Dec 7, 2023
86c3834
removed debug message
davidfig Dec 7, 2023
c1b1039
Add AUTHENTICATE_JWT option to config
ddimaria Dec 7, 2023
c743039
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 7, 2023
a8e2075
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidfig Dec 7, 2023
51fbd5b
remove console.log
davidfig Dec 7, 2023
288d846
Don't send responses for most/all message types
ddimaria Dec 8, 2023
53e240b
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 8, 2023
9c3a208
UI reconnects properly after ws server restarts
ddimaria Dec 8, 2023
40a82ad
test
davidkircos Dec 8, 2023
dd34d57
apt install pkg-config
davidkircos Dec 8, 2023
a7bf9b3
Install pkg-config
davidkircos Dec 8, 2023
f0dde8d
run on GH infra
davidkircos Dec 8, 2023
54ee00a
update stack name
davidkircos Dec 8, 2023
58f64df
npm ci
davidkircos Dec 8, 2023
347d818
pulumi config set aws:region us-west-2
davidkircos Dec 8, 2023
7daac3a
fix
davidkircos Dec 8, 2023
87ce84e
set access token
davidkircos Dec 8, 2023
7db2bd6
fix up check on room during reconnect
davidfig Dec 8, 2023
e754dc8
multiplayer CellInput respects sheetIds
davidfig Dec 8, 2023
1fa6eea
fix MP cursors error message
davidfig Dec 8, 2023
aaa7903
added "User n" for users without names
davidfig Dec 8, 2023
a160f88
add fallback to email for naming users
davidfig Dec 8, 2023
98b8095
rework MultiplayerUser interface to make it consistent with server
davidfig Dec 8, 2023
d8429ad
remove console.log
davidfig Dec 8, 2023
6f822de
Merge branch 'main' into mp-transaction
davidfig Dec 8, 2023
afa3139
Merge remote-tracking branch 'origin/a-team' into mp-transaction
davidfig Dec 8, 2023
958c489
remove quadrants code from codebase
davidfig Dec 8, 2023
5fe2031
follow starts properly
davidfig Dec 8, 2023
7167c6e
better naming of user in top bar
davidfig Dec 8, 2023
ed95bc6
square everywhere!
davidfig Dec 8, 2023
6b1dcbd
test on ci
davidkircos Dec 8, 2023
bb12c1b
select stack
davidkircos Dec 8, 2023
859f137
command order
davidkircos Dec 8, 2023
721b710
wait for ec2
davidkircos Dec 8, 2023
6408fbe
fix ssh user
davidkircos Dec 8, 2023
231b3d4
fix ssh user
davidkircos Dec 8, 2023
8fd611a
run on selfHosted
davidkircos Dec 8, 2023
7dd8d69
add node
davidkircos Dec 8, 2023
c17b604
sync packagelock
davidkircos Dec 8, 2023
4baf477
install pulumi
davidkircos Dec 8, 2023
f921935
install npm
davidkircos Dec 8, 2023
a4e2c5a
Merge pull request #924 from quadratichq/mp-infra
davidkircos Dec 8, 2023
b0dcaf5
dont run rust tests
davidkircos Dec 8, 2023
c9aa541
pulumi setup full stack
davidkircos Dec 8, 2023
fb5f36b
ref preview stack
davidkircos Dec 8, 2023
14ad751
fix
davidkircos Dec 8, 2023
3887e4a
fix if
davidkircos Dec 8, 2023
92d66f8
stop service before replacing binary
davidkircos Dec 8, 2023
5e9fe18
rm binary
davidkircos Dec 8, 2023
c564d43
clean
davidkircos Dec 8, 2023
6e284aa
Fix all the broken tests
ddimaria Dec 8, 2023
01d6cf5
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 8, 2023
202efbd
move config
davidkircos Dec 8, 2023
1be5f48
pass domain to pulumi stack
davidkircos Dec 8, 2023
c947cbc
Re-enable tests in CI
ddimaria Dec 8, 2023
539db48
remove space
davidkircos Dec 8, 2023
30b7551
rm fail silently
davidkircos Dec 9, 2023
bd80e18
don't use config name spaces
davidkircos Dec 9, 2023
77581bb
Add env vars to .env.test
ddimaria Dec 9, 2023
c80027a
preview branches for client via pulumi
davidkircos Dec 9, 2023
b98bb26
spills is starting to work
davidfig Dec 9, 2023
04d4bc0
test
davidkircos Dec 9, 2023
4608a74
point preview to ci multiplayer
davidkircos Dec 9, 2023
a1e2cf0
don't run client preview
davidkircos Dec 9, 2023
61668ab
teardown preview on branch close
davidkircos Dec 9, 2023
3e97287
Merge branch 'mp-transaction' into mp-infra-2
davidkircos Dec 9, 2023
80d3aa6
update infra
davidkircos Dec 9, 2023
9e4c35b
try fix build
davidkircos Dec 9, 2023
91938f9
rebuild
davidkircos Dec 9, 2023
ec52695
try building with openssl
davidkircos Dec 9, 2023
389617f
try
davidkircos Dec 9, 2023
1efbfe0
change ami
davidkircos Dec 9, 2023
3b43273
remove unnecessary dep
davidkircos Dec 9, 2023
0b7ff2d
clean up
davidkircos Dec 9, 2023
c25be97
verify service is running
davidkircos Dec 10, 2023
573a73a
use correct certificate
davidkircos Dec 10, 2023
8bc6045
refactor starting to come together
davidfig Dec 10, 2023
acd4fd1
fix wss url
davidkircos Dec 10, 2023
3745ba2
cache amplify
davidkircos Dec 10, 2023
069c5e5
fix amplify
davidkircos Dec 10, 2023
808fe72
get amplify working
davidkircos Dec 10, 2023
b3bcf31
try using build script on amplify
davidkircos Dec 10, 2023
79d15d1
test build caching
davidkircos Dec 10, 2023
d648bff
organize build script
davidkircos Dec 10, 2023
c92aa26
create reusable deploy to ec2 command
davidkircos Dec 10, 2023
f5e0c4e
Set executable permissions on deploy script
davidkircos Dec 10, 2023
491bede
cleanup
davidkircos Dec 10, 2023
0e46735
remove unused code
davidkircos Dec 10, 2023
2fefb03
cleanup
davidkircos Dec 11, 2023
4d4e962
more computation refactoring
davidfig Dec 11, 2023
3f73bfa
all tests pass
davidfig Dec 11, 2023
ee213a4
syntax error fix
davidfig Dec 11, 2023
320397c
fix clippy
davidfig Dec 11, 2023
690e20e
cleanup
davidkircos Dec 11, 2023
850189e
Fake email
ddimaria Dec 11, 2023
fe25259
Merge branch 'mp-transaction' of github.com:quadratichq/quadratic int…
ddimaria Dec 11, 2023
e59c6dc
Add rust workspace support
ddimaria Dec 11, 2023
02e1ece
Move transaction_types to wasm_bindings
ddimaria Dec 11, 2023
8e58584
Move js_types to wasm_bindings
ddimaria Dec 11, 2023
5e7f368
Move sheet_offsets_wasm to wasm_bindings
ddimaria Dec 11, 2023
2c7c575
Merge pull request #927 from quadratichq/mp-infra-2
davidkircos Dec 11, 2023
d9adbc8
update code based on feedback from PR
davidfig Dec 11, 2023
cf00ad1
Revert "Move sheet_offsets_wasm to wasm_bindings"
ddimaria Dec 11, 2023
8c51a24
Revert "Revert "Move sheet_offsets_wasm to wasm_bindings""
ddimaria Dec 11, 2023
373d642
Revert "Move js_types to wasm_bindings"
ddimaria Dec 11, 2023
49dc043
Revert "Move transaction_types to wasm_bindings"
ddimaria Dec 11, 2023
2e2c14f
Revert sheet_offsets_wasm
ddimaria Dec 11, 2023
ab6c6b6
Merge branch 'mp-transaction' into mp-transaction-refactor-tip
davidfig Dec 11, 2023
666326b
Merge pull request #930 from quadratichq/mp-transaction-refactor-tip
davidfig Dec 11, 2023
953ce88
add data dog to ec2 instances
davidkircos Dec 11, 2023
a114072
Merge pull request #934 from quadratichq/mp-transaction-add-dd
davidkircos Dec 11, 2023
b73798e
prod instance type to x64
davidkircos Dec 11, 2023
197e5d7
Merge branch 'mp-transaction' of https://github.com/quadratichq/quadr…
davidkircos Dec 11, 2023
043c66a
working through files
davidfig Dec 12, 2023
00e045c
Update files in realtime for Transaction messages
ddimaria Dec 12, 2023
f38bc73
Merge remote-tracking branch 'origin/mp-transaction' into mp-rust-wor…
ddimaria Dec 12, 2023
ef05331
Remove unused
ddimaria Dec 12, 2023
3780cb8
Share test_util, create shared crate
ddimaria Dec 12, 2023
be35d8a
Move all sample data to the rust-shared crate
ddimaria Dec 13, 2023
db8df05
Merge pull request #931 from quadratichq/mp-rust-workspace
ddimaria Dec 13, 2023
647a22c
Basic structure of the transaction queue
ddimaria Dec 13, 2023
4ad7ebd
Add incoming transactions to the transaction queue
ddimaria Dec 13, 2023
70f099b
cleaned up all rust errors
davidfig Dec 13, 2023
31b6659
Merge branch 'mp-transaction' into mp-transaction-no-ids
davidfig Dec 13, 2023
2f74a15
Receive and broadcast transaction_id, store id in the queue
ddimaria Dec 13, 2023
570463d
after merge
davidfig Dec 13, 2023
b4cde9f
Broadcast sequence numbers, allow clients to retrieve missing transac…
ddimaria Dec 13, 2023
983e005
fix test warnings
davidfig Dec 13, 2023
1d20ade
more test fixes
davidfig Dec 13, 2023
906ddcc
Test background worker
ddimaria Dec 14, 2023
9dbadbc
Get coverage working
ddimaria Dec 14, 2023
a968102
all tests pass
davidfig Dec 14, 2023
04104b6
fixed semver for file version
davidfig Dec 14, 2023
efe64d8
clean up error in mp
davidfig Dec 14, 2023
f1efcee
Merge branch 'mp-transaction' into mp-transaction-no-ids
davidfig Dec 14, 2023
b2b8753
cleaning up warnings
davidfig Dec 14, 2023
7e9a239
clippy
davidfig Dec 14, 2023
a326960
reworking directory structure
davidfig Dec 14, 2023
fdecdd2
tests are passing again
davidfig Dec 14, 2023
eb3ed07
Cleanup and document
ddimaria Dec 14, 2023
f6b41ba
Merge remote-tracking branch 'origin/mp-transaction' into mp-transact…
ddimaria Dec 14, 2023
564e148
Fix pathing issues in CI
ddimaria Dec 14, 2023
d95e9e1
move transaction_in_progress to execution
davidfig Dec 14, 2023
287a19e
Instrument all the things
ddimaria Dec 14, 2023
afb4800
separate sheets operations
davidfig Dec 14, 2023
504ef4b
Remove unused
ddimaria Dec 14, 2023
c070f19
Allow a vec of excluded user for braodcasting
ddimaria Dec 14, 2023
44b360f
Refactor + remove source user from broadcast exclusions for transactions
ddimaria Dec 14, 2023
d0cf576
Clean up logging
ddimaria Dec 14, 2023
9467d8c
Get the frontend working with the latest changes
ddimaria Dec 14, 2023
d957e62
Add SendGetTransactions to TS
ddimaria Dec 14, 2023
d9ceee2
Fix info logging
ddimaria Dec 14, 2023
ce32aa5
Add more TS message types, create sendGetTransactions()
ddimaria Dec 14, 2023
77aa5d1
Merge pull request #938 from quadratichq/mp-transaction-queue
ddimaria Dec 14, 2023
3b51707
fix clippy
davidfig Dec 15, 2023
6353cc6
fix PR comments
davidfig Dec 15, 2023
c8bf214
Merge branch 'mp-transaction' into mp-transaction-no-ids
davidfig Dec 15, 2023
0b8cc9a
fix test_util use of region
davidfig Dec 15, 2023
ced2182
Merge pull request #939 from quadratichq/mp-transaction-no-ids
davidfig Dec 15, 2023
940b67c
Merge branch 'mp-transaction' into mp-transaction-dumb-ops
davidfig Dec 15, 2023
2912cb7
fix merge issues
davidfig Dec 15, 2023
b978a74
more merge conflicts
davidfig Dec 15, 2023
db8e083
Merge branch 'mp-transaction' into mp-transaction-dumb-ops
davidfig Dec 15, 2023
68ae176
handle CellInput temporary bold and italic in multiplayer
davidfig Dec 15, 2023
9c36d50
Merge branch 'mp-transaction' into mp-transaction-dumb-ops
davidfig Dec 15, 2023
276ae9d
replace super::super with crate
davidfig Dec 17, 2023
9ee1c98
minor tweaks for PR
davidfig Dec 17, 2023
a6cffb6
Merge pull request #944 from quadratichq/mp-transaction-dumb-ops
davidfig Dec 17, 2023
c918a9e
change TransactionType::Normal to TransactionType::User
davidfig Dec 17, 2023
bd773f9
Merge branch 'a-team' into mp-transaction
davidfig Dec 17, 2023
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
270 changes: 156 additions & 114 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,139 +12,181 @@ on:

jobs:
test_rust:
runs-on: ubuntu-latest-8-cores
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4

- name: Set up Rust
uses: moonrepo/setup-rust@v1
with:
components: clippy, llvm-tools-preview
cache: false
channel: 'nightly'

- name: install grcov
run: if ! which grcov; then cargo install grcov; fi

- name: Build Rust
env:
RUSTFLAGS: -Cinstrument-coverage
run: |
cd quadratic-core
cargo build

- name: Test
env:
LLVM_PROFILE_FILE: grcov-%p-%m.profraw
RUSTFLAGS: -Cinstrument-coverage
run: |
cd quadratic-core
cargo test

- name: Generate coverage
run: |
grcov $(find . -name "grcov-*.profraw" -print) \
--branch \
--ignore-not-existing \
--binary-path ./quadratic-core/target/debug/ \
-s . \
-t lcov \
--ignore "/*" \
--ignore "./quadratic-core/src/wasm_bindings/*" \
--ignore "./quadratic-core/src/bin/*" \
-o lcov.info

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/checkout@v4

- name: Set up Rust
uses: moonrepo/setup-rust@v1
with:
components: clippy, llvm-tools-preview
cache: false
channel: "nightly"

- name: Install grcov
run: if ! which grcov; then cargo install grcov; fi

- name: Install llvm-tools-preview
run: if ! which llvm-tools-preview; then rustup component add llvm-tools-preview; fi

- name: Install pkg-config
if: github.runner.isHosted == true
run: |
sudo apt-get update
sudo apt-get install -y pkg-config

- name: Build quadratic-core
env:
RUSTFLAGS: -Cinstrument-coverage
run: |
cd quadratic-core
cargo build

- name: Test quadratic-core
env:
LLVM_PROFILE_FILE: grcov-%p-%m.profraw
RUSTFLAGS: -Cinstrument-coverage
run: |
cd quadratic-core
cargo test

- name: Generate coverage for quadratic-core
run: |
grcov $(find . -name "grcov-*.profraw" -print) \
--branch \
--ignore-not-existing \
--binary-path ./target/debug/ \
-s . \
-t lcov \
--ignore "/*" \
--ignore "./src/wasm_bindings/*" \
--ignore "./src/bin/*" \
-o lcov.info

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Build quadratic-multiplayer
env:
RUSTFLAGS: -Cinstrument-coverage
run: |
cd quadratic-multiplayer
cargo build

- name: Test quadratic-multiplayer
env:
LLVM_PROFILE_FILE: grcov-%p-%m.profraw
RUSTFLAGS: -Cinstrument-coverage
run: |
cd quadratic-multiplayer
cargo test # hangs forever

- name: Generate coverage quadratic-multiplayer
run: |
grcov $(find . -name "grcov-*.profraw" -print) \
--branch \
--ignore-not-existing \
--binary-path ./target/debug/ \
-s . \
-t lcov \
--ignore "/*" \
--ignore "./src/wasm_bindings/*" \
--ignore "./src/bin/*" \
-o lcov.info

- name: Upload coverage reports to Codecov quadratic-multiplayer
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test_unit:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18

- name: Run npm test:ci in quadratic-client
run: |
cd quadratic-client
npm install
npm run test:unit
- name: Run npm test:ci in quadratic-client
run: |
cd quadratic-client
npm install
npm run test:unit

test_python:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'

- name: Test python
run: |
pip install -r requirements.txt
cd quadratic-client
npm run test:python
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"

- name: Test python
run: |
pip install -r requirements.txt
cd quadratic-client
npm run test:python

test_api:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18

- name: Run npm test:ci in quadratic-client
run: |
cd quadratic-api
npm install
npm run docker:test:ci
- name: Run npm test:ci in quadratic-client
run: |
cd quadratic-api
npm install
npm run docker:test:ci

lint_rust:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: moonrepo/setup-rust@v1
with:
components: clippy
cache: false

- name: Run cargo clippy in quadratic-core
run: |
cd quadratic-core
cargo clippy -- -D warnings
- uses: actions/checkout@v4
- name: Set up Rust
uses: moonrepo/setup-rust@v1
with:
components: clippy
cache: false

- name: Run cargo clippy in quadratic-core
run: |
cd quadratic-core
cargo clippy -- -D warnings

lint:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up Rust
uses: moonrepo/setup-rust@v1
with:
cache: false
- uses: jetli/[email protected]
with:
version: 'latest'

- name: Build wasm core
run: |
cd quadratic-client
npm run build:wasm:javascript:dev
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
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up Rust
uses: moonrepo/setup-rust@v1
with:
cache: false
- uses: jetli/[email protected]
with:
version: "latest"

- name: Build wasm core
run: |
cd quadratic-client
npm run build:wasm:javascript:dev
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
100 changes: 0 additions & 100 deletions .github/workflows/coverage-rust.yml

This file was deleted.

Loading
Loading