diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 88afedb0..08abe127 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -33,32 +33,39 @@ jobs: command: test - name: Copy .env.example + if: github.event_name != 'pull_request' run: | cp .env.example .env - name: Run services in background + if: github.event_name != 'pull_request' run: | - docker-compose up -d -f docker-compose.db.yml + docker-compose -f docker-compose.db.yml up -d - name: Start API in background + if: github.event_name != 'pull_request' run: | cargo run --bin revolt-delta & - name: Wait for API to go up + if: github.event_name != 'pull_request' uses: nev7n/wait_for_response@v1 with: url: "http://localhost:8000/" - name: Checkout API repository + if: github.event_name != 'pull_request' uses: actions/checkout@v3 with: repository: revoltchat/api path: api - name: Download OpenAPI specification + if: github.event_name != 'pull_request' run: curl http://localhost:8000/openapi.json -o api/OpenAPI.json - name: Commit changes + if: github.event_name != 'pull_request' uses: EndBug/add-and-commit@v4 with: cwd: "api"