Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github action #8749

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/build-test-debug.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
name: Build & Test Debug

env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
DOTNET_GENERATE_ASPNET_CERTIFICATE: 0
DOTNET_ADD_GLOBAL_TOOLS_TO_PATH: 0
DOTNET_MULTILEVEL_LOOKUP: 0
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
TERM: xterm

on:
push:
branches: [ master ]
Expand Down Expand Up @@ -34,7 +44,7 @@ jobs:

steps:
- name: Checkout Master
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Submodule
run: |
Expand All @@ -49,9 +59,15 @@ jobs:
git submodule update --init --recursive

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- uses: actions/[email protected]
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-

- name: Install dependencies
run: dotnet restore
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Build & Test Release

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
on:
push:
branches: [ master ]
Expand All @@ -23,7 +25,7 @@ on:
- '**.yml'
- 'RobustToolbox'
- 'RobustToolbox/**'

#hello
jobs:
build:
strategy:
Expand Down Expand Up @@ -52,18 +54,23 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- uses: actions/cache@v1
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Install dependencies
run: dotnet restore

- name: Build Project
run: dotnet build --configuration Release --no-restore /p:WarningsAsErrors=nullable /m

- name: Run Content.Tests
run: dotnet test --no-build Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0
run: dotnet test --no-build Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=2 NUnit.Verbosity=5 DefaultTimeout=80_000

- name: Run Content.IntegrationTests
shell: pwsh
run: |
$env:DOTNET_gcServer=1
dotnet test --no-build Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0
dotnet test --no-build Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=2 NUnit.Verbosity=5 NUnit.DefaultTimeout=900000