From 402f9c7c228d9d2e51f27d4e5486acfb696320ff Mon Sep 17 00:00:00 2001 From: Jhett Black <10942655+jhett12321@users.noreply.github.com> Date: Fri, 29 Nov 2024 01:16:58 +0100 Subject: [PATCH] Use native CLI instead of action. --- .github/workflows/ci.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40201ad..ac0543a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,16 +60,21 @@ jobs: with: submodules: recursive - - name: Build and run tests - uses: devcontainers/ci@v0.3 + - name: Setup NPM + uses: actions/setup-node@v4 with: - env: | - NWNX_DOTNET_ASSEMBLY=/workspace/NWNX.NET.Tests/bin/Release/NWNX.NET.Tests - NWNX_DOTNET_TEST_RESULT_PATH=/workspace/NWNX.NET.Tests/bin/Release/NWNX.NET.Tests/results - runCmd: | - dotnet build --configuration Release - cd /nwn/data/bin/linux-amd64 - /nwn/run-server.sh + node-version: 18 + + - name: Install Dev Containers CLI + run: npm install -g @devcontainers/cli + + - name: Build and run tests + run: | + devcontainer exec --path . dotnet build --configuration Release + devcontainer exec --path . cd /nwn/data/bin/linux-amd64 && \ + export NWNX_DOTNET_ASSEMBLY=/workspace/NWNX.NET.Tests/bin/Release/NWNX.NET.Tests && \ + export NWNX_DOTNET_TEST_RESULT_PATH=/workspace/NWNX.NET.Tests/bin/Release/NWNX.NET.Tests/results && \ + /nwn/run-server.sh - name: Setup .NET Core uses: actions/setup-dotnet@v1.9.0