Skip to content

Commit

Permalink
Trigger on self-hosted agent and rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesVanStappen committed Jun 26, 2024
1 parent 6f36ab0 commit 5ae1816
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/dotnetcore.yml → .github/workflows/pr.yml
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

0 comments on commit 5ae1816

Please sign in to comment.