forked from dotnet-architecture/eShopOnWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger on self-hosted agent and rename file
- Loading branch information
1 parent
6f36ab0
commit 5ae1816
Showing
1 changed file
with
25 additions
and
25 deletions.
There are no files selected for viewing
50 changes: 25 additions & 25 deletions
50
.github/workflows/dotnetcore.yml → .github/workflows/pr.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |