Skip to content

Commit

Permalink
Use native CLI instead of action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhett12321 committed Nov 29, 2024
1 parent a18049a commit 402f9c7
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,21 @@ jobs:
with:
submodules: recursive

- name: Build and run tests
uses: devcontainers/[email protected]
- 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/[email protected]
Expand Down

0 comments on commit 402f9c7

Please sign in to comment.