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