Run runtime policy first on self-hosted gate
This commit is contained in:
@@ -6,20 +6,15 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
runtime-policy:
|
|
||||||
name: Repository runtime policy
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Enforce runtime policy
|
|
||||||
run: bash server/scripts/verify-no-legacy-runtime.sh
|
|
||||||
|
|
||||||
build-and-test:
|
build-and-test:
|
||||||
name: C# build and test
|
name: Repository policy, C# build and test
|
||||||
runs-on: [self-hosted, Linux, X64]
|
runs-on: [self-hosted, Linux, X64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Enforce repository runtime policy
|
||||||
|
run: bash server/scripts/verify-no-legacy-runtime.sh
|
||||||
|
|
||||||
- uses: actions/setup-dotnet@v4
|
- uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: "8.0.x"
|
dotnet-version: "8.0.x"
|
||||||
@@ -32,7 +27,7 @@ jobs:
|
|||||||
working-directory: server
|
working-directory: server
|
||||||
run: dotnet run --project tests/CommonwealthOnline.Server.Tests.csproj -c Release
|
run: dotnet run --project tests/CommonwealthOnline.Server.Tests.csproj -c Release
|
||||||
|
|
||||||
- name: Check Linux scripts and repository policy
|
- name: Check Linux scripts
|
||||||
working-directory: server
|
working-directory: server
|
||||||
run: |
|
run: |
|
||||||
chmod +x start.sh fix-port.sh scripts/linux_compat_checks.sh scripts/verify-no-legacy-runtime.sh
|
chmod +x start.sh fix-port.sh scripts/linux_compat_checks.sh scripts/verify-no-legacy-runtime.sh
|
||||||
@@ -40,7 +35,7 @@ jobs:
|
|||||||
bash -n fix-port.sh
|
bash -n fix-port.sh
|
||||||
bash -n scripts/linux_compat_checks.sh
|
bash -n scripts/linux_compat_checks.sh
|
||||||
bash -n scripts/verify-no-legacy-runtime.sh
|
bash -n scripts/verify-no-legacy-runtime.sh
|
||||||
bash scripts/verify-no-legacy-runtime.sh
|
bash scripts/linux_compat_checks.sh
|
||||||
|
|
||||||
- name: Publish Linux server
|
- name: Publish Linux server
|
||||||
working-directory: server
|
working-directory: server
|
||||||
|
|||||||
Reference in New Issue
Block a user