From 0fb6d95ab065db8724b69cdf694698226d9b13c4 Mon Sep 17 00:00:00 2001 From: Ryan Collingham Date: Fri, 12 Jul 2024 10:18:50 +0100 Subject: [PATCH] move services definition to job level --- .github/workflows/build_and_test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 9b49481..8f0b9a2 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -9,6 +9,12 @@ on: jobs: BuildAndTestLibrary: runs-on: ubuntu-20.04 + services: + mysql: + image: mysql + ports: 3306:3306 + env: + MYSQL_ROOT_PASSWORD: "root" steps: - name: Checkout uses: actions/checkout@v3 @@ -32,9 +38,3 @@ jobs: - name: Test run: go test -v ./indexer - services: - mysql: - image: mysql - ports: 3306:3306 - environment: - MYSQL_ROOT_PASSWORD: "root"