Skip to content

Commit

Permalink
#19 yml change + minor test change
Browse files Browse the repository at this point in the history
modifications to test yml to check for changes to the test project or the data access repository project
  • Loading branch information
Ian-Webster committed Dec 6, 2023
1 parent 37874bb commit 5b92bf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Check for Changes in Repository Project
run: |
if [[ $(git diff --name-only ${{ github.event.before }} ${{ github.sha }} 'DataAccess.Repository/') ]]; then
if [[ $(git diff --name-only ${{ github.event.before }} ${{ github.sha }} 'DataAccess.Repository/' 'DataAccess.Repository.Tests/') ]]; then
echo "Changes detected in DataAccess.Repository project. Restoring packages, running build and testing..."
dotnet restore 'DataAccess.Repository'
dotnet build --configuration Release 'DataAccess.Repository'
Expand Down
1 change: 0 additions & 1 deletion DataAccess.Repository.Tests/Tests/Add.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using DataAccess.Repository.Tests.Shared.Entities;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NUnit.Framework;

namespace DataAccess.Repository.Tests.Tests;
Expand Down

0 comments on commit 5b92bf7

Please sign in to comment.