From 5ae181637571cb4cd1f5ca2030038c128ae19113 Mon Sep 17 00:00:00 2001 From: Yves Date: Wed, 26 Jun 2024 11:06:21 +0200 Subject: [PATCH] Trigger on self-hosted agent and rename file --- .github/workflows/{dotnetcore.yml => pr.yml} | 50 ++++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) rename .github/workflows/{dotnetcore.yml => pr.yml} (89%) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/pr.yml similarity index 89% rename from .github/workflows/dotnetcore.yml rename to .github/workflows/pr.yml index 9de1c1a4b..fbb5a69a6 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/pr.yml @@ -1,25 +1,25 @@ -name: PR - -on: - pull_request: - branches: - - main - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '8.0.x' - include-prerelease: true - - - name: Build with dotnet - run: dotnet build ./eShopOnWeb.sln --configuration Release - - - name: Test with dotnet - run: dotnet test ./eShopOnWeb.sln --configuration Release +name: PR + +on: + pull_request: + branches: + - main + +jobs: + build: + + runs-on: [self-hosted] + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '8.0.x' + include-prerelease: true + + - name: Build with dotnet + run: dotnet build ./eShopOnWeb.sln --configuration Release + + - name: Test with dotnet + run: dotnet test ./eShopOnWeb.sln --configuration Release