Update rust.yml

This commit is contained in:
Flori 2023-04-15 17:47:24 +02:00 committed by GitHub
parent 592d3a2559
commit 7d7a4d102a
1 changed files with 5 additions and 7 deletions

View File

@ -15,23 +15,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Node.js
run: |
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
- name: Install dependencies - name: Install dependencies
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
git clone https://github.com/polyphony-chat/spacebarchat-server.git curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
git clone https://github.com/polyphony-chat/spacebarchat-server.git
- name: Prepare and start spacebarchat-server - name: Prepare and start spacebarchat-server
run: | run: |
npm install npm install
npm run setup npm run setup
npm run start & npm run start &
echo $! > server_pid.txt echo $! > server_pid.txt
working-directory: ./server working-directory: ./spacebarchat-server
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
- name: Run tests - name: Run tests