Skip to content

Commit

Permalink
Add PR build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
s3nthilg0pal committed Dec 22, 2024
1 parent 3fc205c commit 3d7087c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build -pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR build

on:
push:
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
pull_request:
branches: [ $default-branch ]

jobs:
build:
Expand Down

0 comments on commit 3d7087c

Please sign in to comment.