Skip to content

Commit

Permalink
add services to test workflow of GitHub Actions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Mar 25, 2024
1 parent cd0717d commit 0857be0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0857be0

Please sign in to comment.