Skip to content

Commit

Permalink
Add ymls
Browse files Browse the repository at this point in the history
  • Loading branch information
adambollen committed Dec 12, 2023
1 parent 2e26622 commit 2dab5f2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr_donotmerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate pull request (do not merge)

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize, ready_for_review]

jobs:
do_not_merge-check:
runs-on: ubuntu-latest
steps:
- name: Has tag
if: github.base_ref == 'main' && contains( github.event.pull_request.labels.*.name, 'pr/do-not-merge')
run: |
echo "PR blocked: [tag: pr/do-not-merge]"
exit 1
- name: All good
if: ${{ success() }}
run: |
echo "All good"
21 changes: 21 additions & 0 deletions .github/workflows/pr_validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Validate driver

on:
pull_request:

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '8.0.x' ]

steps:
- uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Run unit tests on .NET ${{ matrix.dotnet-version }}
run: dotnet test

0 comments on commit 2dab5f2

Please sign in to comment.