Update rust.yml
This commit is contained in:
parent
2122bf8a1c
commit
592d3a2559
|
@ -24,21 +24,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y git python3 build-essential
|
sudo apt-get install -y git python3 build-essential
|
||||||
- name: Clone spacebarchat-server
|
git clone https://github.com/polyphony-chat/spacebarchat-server.git
|
||||||
run: git clone https://github.com/polyphony-chat/spacebarchat-server.git
|
- name: Prepare and start spacebarchat-server
|
||||||
- name: Install Node packages
|
|
||||||
run: npm install
|
|
||||||
working-directory: ./server
|
|
||||||
- name: Build and generate schema
|
|
||||||
run: npm run setup
|
|
||||||
working-directory: ./server
|
|
||||||
- name: Start the server
|
|
||||||
run: |
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run setup
|
||||||
npm run start &
|
npm run start &
|
||||||
echo $! > server_pid.txt
|
echo $! > server_pid.txt
|
||||||
working-directory: ./server
|
working-directory: ./server
|
||||||
- name: Wait for server to start
|
|
||||||
run: sleep 10
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|
Loading…
Reference in New Issue