Skip to content

break: convert to workspace #14

break: convert to workspace

break: convert to workspace #14

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Setup .env files
run: |
echo "DATABASE_URL_LOCAL_USERS=${{ secrets.DATABASE_URL_LOCAL_USERS }}" >> .env
echo "POSTGRES_DB=${{ secrets.POSTGRES_DB }}" >> .env
echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env
echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> .env
- name: Start Services with Docker Compose
run: docker-compose up -d
- name: Install sqlx CLI
run: cargo install sqlx-cli
- name: Build server
run: |
cd server

Check failure on line 38 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 38
cargo build --verbose --release
- name: Delay for all docker service startup # TODO: its good for now... but have to fix later
run: sleep 15
- name: Run tests in server
run: |
cd server
cargo test --verbose -- --nocapture
- name: Build worker
run: |
cd worker
cargo build --verbose --release
- name: Run tests in worker
run: |
cd worker
cargo test --verbose -- --nocapture