diff --git a/.github/workflows/build.yaml b/.github/workflows/build-and-test.yaml similarity index 79% rename from .github/workflows/build.yaml rename to .github/workflows/build-and-test.yaml index 6ca3be8d..b7c60728 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build-and-test.yaml @@ -1,4 +1,4 @@ -name: Build +name: Build and test on: workflow_call: @@ -47,3 +47,15 @@ jobs: with: name: ratings path: target/release/ratings + + - name: Install cargo-make + run: cargo install cargo-make + + - name: Start Database + run: cargo make db-up + + - name: Prepare environment file + run: cp example.env .env + + - name: Run tests + run: cargo make full-test diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index bfccc447..8efd62ab 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -11,6 +11,6 @@ concurrency: jobs: build: - uses: ./.github/workflows/build.yaml + uses: ./.github/workflows/build-and-test.yaml cla: uses: ./.github/workflows/cla.yaml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 068e26bd..ad04f226 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -11,4 +11,4 @@ concurrency: jobs: build: - uses: ./.github/workflows/build.yaml + uses: ./.github/workflows/build-and-test.yaml