Skip to content

Commit

Permalink
Add PR build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyaulee committed Feb 22, 2024
1 parent 0038d35 commit 206c322
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/WebExtensions.Net-PR-Build.yml
@@ -0,0 +1,30 @@
name: PR Build

on:
pull_request:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
buildAndTestPR:
runs-on: windows-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup Chrome and Chrome Driver
uses: nanasess/setup-chromedriver@master
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Debug
- name: Run tests
run: dotnet test --no-restore --no-build --configuration Debug

0 comments on commit 206c322

Please sign in to comment.