.
This commit is contained in:
parent
9f09b07de9
commit
99608b55cd
5 changed files with 17 additions and 17 deletions
12
.github/workflows/check.yml
vendored
12
.github/workflows/check.yml
vendored
|
|
@ -17,6 +17,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js environment
|
||||||
|
uses: actions/setup-node@v4.2.0
|
||||||
|
with:
|
||||||
|
node-version: "22.x"
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: |
|
run: |
|
||||||
cargo install sqlx-cli
|
cargo install sqlx-cli
|
||||||
|
|
@ -36,12 +42,6 @@ jobs:
|
||||||
cargo clippy --all-targets --all-features
|
cargo clippy --all-targets --all-features
|
||||||
cargo fmt --all -- --check
|
cargo fmt --all -- --check
|
||||||
|
|
||||||
- name: Setup Node.js environment
|
|
||||||
uses: actions/setup-node@v4.2.0
|
|
||||||
with:
|
|
||||||
node-version: "22.x"
|
|
||||||
check-latest: true
|
|
||||||
|
|
||||||
- name: Test backend
|
- name: Test backend
|
||||||
run: |
|
run: |
|
||||||
cd backend
|
cd backend
|
||||||
|
|
|
||||||
12
.github/workflows/e2e.yml
vendored
12
.github/workflows/e2e.yml
vendored
|
|
@ -17,16 +17,16 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup Node.js environment
|
||||||
run: |
|
uses: actions/setup-node@v4.2.0
|
||||||
cargo install sqlx-cli
|
with:
|
||||||
cd backend
|
node-version: "22.x"
|
||||||
sqlx database create --database-url sqlite://db.sqlite3
|
check-latest: true
|
||||||
sqlx migrate run --source sync_server/src/database/migrations --database-url sqlite://db.sqlite3
|
|
||||||
|
|
||||||
- name: Build wasm
|
- name: Build wasm
|
||||||
run: |
|
run: |
|
||||||
cargo install wasm-pack
|
cargo install wasm-pack
|
||||||
|
cd sync_lib
|
||||||
wasm-pack build --target web sync_lib
|
wasm-pack build --target web sync_lib
|
||||||
|
|
||||||
- name: E2E tests
|
- name: E2E tests
|
||||||
|
|
|
||||||
2
.github/workflows/publish-plugin.yml
vendored
2
.github/workflows/publish-plugin.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v4.2.0
|
uses: actions/setup-node@v4.2.0
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
rm -rf backend/databases
|
rm -rf backend/databases
|
||||||
rm -rf frontend/test-client/logs
|
rm -rf logs
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,14 @@ fi
|
||||||
# Get the number of processes from the first argument
|
# Get the number of processes from the first argument
|
||||||
process_count=$1
|
process_count=$1
|
||||||
|
|
||||||
|
mkdir -p logs
|
||||||
|
|
||||||
cd frontend
|
cd frontend
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
mkdir -p logs
|
|
||||||
|
|
||||||
pids=()
|
pids=()
|
||||||
for i in $(seq 1 $process_count); do
|
for i in $(seq 1 $process_count); do
|
||||||
node test-client/dist/cli.js > "logs/log_${i}.log" 2>&1 &
|
node test-client/dist/cli.js > "../logs/log_${i}.log" 2>&1 &
|
||||||
pids+=($!)
|
pids+=($!)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue