name: Build and Test on: push: branches: [ "main" ] pull_request: branches: [ "main" ] env: CARGO_TERM_COLOR: always jobs: rust: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install dependencies run: | sudo apt-get update 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/bitfl0wer/server.git - name: Prepare and start Spacebar server run: | npm install npm run setup npm run start & working-directory: ./server - name: Build run: cargo build --verbose - name: Run tests run: cargo test --verbose