-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create code-pr-check.yml * Removed home controller tests * Fixed broken test --------- Co-authored-by: Tom Whittington <tom.whittington@education.gov.uk>
- Loading branch information
1 parent
50f5740
commit aef7257
Showing
3 changed files
with
48 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Code PR Check | ||
|
||
on: | ||
push: | ||
branches: ["main", "Development"] | ||
paths: | ||
- "src/**" | ||
- "tests/**" | ||
pull_request: | ||
branches: ["main", "Development"] | ||
paths: | ||
- "src/**" | ||
- "tests/**" | ||
- ".github/workflows/code-pr-check.yml" | ||
|
||
concurrency: | ||
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | ||
cancel-in-progress: true | ||
|
||
env: | ||
DOTNET_VERSION: '8.0.x' | ||
|
||
jobs: | ||
build-test-web-app: | ||
name: Build and run unit tests | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --no-restore | ||
|
||
- name: Test | ||
run: dotnet test --no-build --verbosity normal | ||
|
||
- name: Install dotnet coverage | ||
run: dotnet tool install --global dotnet-coverage --version 17.9.3 |
87 changes: 0 additions & 87 deletions
87
tests/Dfe.ContentSupport.Web.Tests/Controllers/HomeControllerTests.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters