From dee93568879f1926307fd536db783718e6f3de0e Mon Sep 17 00:00:00 2001 From: Francisco Diaz Date: Fri, 14 Oct 2022 17:11:19 -0300 Subject: [PATCH] Update GitHub workflow to enable database tests --- .github/workflows/checks.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 318bedda..78b264d8 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -19,8 +19,11 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 + - name: Run Docker compose to spin up services + run: docker compose build && docker compose up -d db + - name: Run unit tests and generate the coverage report - run: make test-coverage + run: RUN_DB_TESTS=1 make test-coverage - name: Upload coverage to Codecov uses: codecov/codecov-action@v2