Skip to content

Commit

Permalink
chore: make code format check part of pr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Sep 5, 2023
1 parent 40a8bf3 commit 2bbadb8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 60 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/dotnet-format-daily.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/dotnet-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: dotnet_format

on:
pull_request:
branches:
- master
paths:
- 'e2e/**'
- 'src/**'
- 'tests/**'

jobs:
dotnet_format:
runs-on: windows-latest
steps:
- name: Install dotnet-format
run: dotnet tool install -g dotnet-format

- name: Checkout repo
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Run dotnet format
id: format
uses: jfversluis/dotnet-format@v1.0.9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-changed-files: true
workspace: "PrismLibrary.sln"

0 comments on commit 2bbadb8

Please sign in to comment.