Skip to content

Commit 8cc914f

Browse files
committed
Update Docker commands in CI workflow for compatibility
- Replace `docker-compose` with `docker compose` commands. - Add `docker/setup-compose-action` for Docker Compose setup in workflow.
1 parent dcaef1a commit 8cc914f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test-and-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ jobs:
1919
uses: actions/setup-dotnet@v4
2020
with:
2121
dotnet-version: '9.0.x'
22+
23+
- name: Set up Docker Compose
24+
uses: docker/setup-compose-action@v1
2225

2326
- name: Start Docker Compose services
2427
working-directory: ./NullOpsDevs.LibSsh.Test
25-
run: docker-compose up -d
28+
run: docker compose up -d
2629

2730
- name: Build test project (Release)
2831
run: dotnet build -c Release --self-contained -r linux-x64 ./NullOpsDevs.LibSsh.Test/NullOpsDevs.LibSsh.Test.csproj
@@ -34,7 +37,7 @@ jobs:
3437
- name: Cleanup Docker Compose
3538
if: always()
3639
working-directory: ./NullOpsDevs.LibSsh.Test
37-
run: docker-compose down -v
40+
run: docker compose down -v
3841

3942
# Placeholder for NuGet publish job (will be added later)
4043
# publish:

0 commit comments

Comments
 (0)