Update rust.yml

This commit is contained in:
Flori 2023-04-15 17:47:24 +02:00 committed by GitHub
parent 34c9ffb222
commit aba68b09b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -16,14 +16,12 @@ jobs:
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
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 git clone https://github.com/polyphony-chat/spacebarchat-server.git
- name: Prepare and start spacebarchat-server - name: Prepare and start spacebarchat-server
run: | run: |
@ -31,7 +29,7 @@ jobs:
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