From 0857be0fa19722006879533d25278136635dbb0d Mon Sep 17 00:00:00 2001 From: Jun Nishimura Date: Tue, 26 Mar 2024 00:16:25 +0900 Subject: [PATCH] add services to test workflow of GitHub Actions (#5) --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f6971b..dd1fafc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,32 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} + services: + mysql: + image: mysql + env: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: test + ports: + - 3306:3306 + postgres: + image: postgres + env: + POSTGRES_PASSWORD: postgres + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 + mssql: + image: mcr.microsoft.com/mssql/server:2022-latest + env: + MSSQL_SA_PASSWORD: "Password123" + ACCEPT_EULA: "Y" + ports: + - 1433:1433 steps: - name: checkout uses: actions/checkout@v2