Skip to content

Commit

Permalink
Update file .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xtray85 committed Oct 6, 2023
1 parent 447c878 commit 96e1ef5
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ install-dep:
script:
- echo "Install dependenses ..."

build-project: # This job runs in the build stage, which runs first.
build-project:
stage: build
variables:
GITHUB_ACTIONS: 1
Expand All @@ -27,20 +27,38 @@ build-project: # This job runs in the build stage, which runs first.
dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build
echo "Compile complete."
yaml-test: # This job runs in the build stage, which runs first.
yaml-test:
stage: test
needs: ["build-project"]
variables:
GITHUB_ACTIONS: 1
GIT_CLEAN_FLAGS: none
GIT_CHECKOUT: none
dependencies: []
script:
- |
dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build
echo "Compile complete."
- dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build

content-test:
stage: test
need: ["yaml-test"]
variables:
GITHUB_ACTIONS: 1
GIT_CLEAN_FLAGS: none
GIT_CHECKOUT: none
dependencies: []
script:
- dotnet test --configuration Tools --no-build Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0

unit-test:
stage: test
need: ["content-test"]
variables:
DOTNET_gcServer:1
GITHUB_ACTIONS: 1
GIT_CLEAN_FLAGS: none
GIT_CHECKOUT: none
dependencies: []
script:
- dotnet test --configuration Tools --no-build Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed


remove-build:
Expand Down

0 comments on commit 96e1ef5

Please sign in to comment.