diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-09 12:10:45 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-09 12:10:45 -0500 |
| commit | ad669580764143037822eaa1ce5518e85a2a087f (patch) | |
| tree | d56376f044e99e8bd1841779f082ec1fbc58ca0e /.github/workflows | |
| parent | Fix tests to work without Dockerfile.test (diff) | |
| download | cli-ad669580764143037822eaa1ce5518e85a2a087f.zip | |
use docker compose to start database in workflow
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d52fa3e..0e1e972 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,13 +12,13 @@ jobs: strategy: matrix: db: - - {name: postgres, version: 16} + - {name: postgres} # - {name: mysql, version: 8} steps: - name: Checkout Source Code uses: actions/checkout@v3 - name: Start Database run: | - docker run --detach --env-file ".env.${{ matrix.db.name }}" "${{ matrix.db.name }}:${{ matrix.db.version }}" + env $(cat ".env.${{ matrix.db.name }}" | xargs) docker compose -f "docker-compose.${{ matrix.db.name }}.yml" up -d - name: Run Tests run: env $(cat ".env.${{ matrix.db.name }}" | xargs) go test -cover ./... |