-
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.
#19 another go at making the yaml work
- Loading branch information
1 parent
11aad7c
commit f842716
Showing
1 changed file
with
37 additions
and
15 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 |
---|---|---|
@@ -1,16 +1,38 @@ | ||
on: | ||
push: | ||
paths: | ||
- 'DataAccess.Repository/' | ||
- 'Extensions/DataAccess.Repository.HotChocolate/' | ||
name: Branch actions | ||
|
||
on: push | ||
|
||
jobs: | ||
debug: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Debug Paths | ||
run: | | ||
echo "Files in repository:" | ||
ls -R | ||
echo "Changed files in this push:" | ||
git diff --name-only ${{ github.event.before }} ${{ github.sha }} | ||
|
||
build_DataAccess: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Install the .NET Core workload | ||
- name: Install .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
# Set up local NuGet repo | ||
- name: Setup GitHub NuGet | ||
run: dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Ian-Webster/index.json" | ||
|
||
# Resource NuGet dependencies | ||
- name: Restore dependencies | ||
run: dotnet restore 'DataAccess.Repository' | ||
|
||
# Build project | ||
- name: Build | ||
run: dotnet build --configuration Release 'DataAccess.Repository' | ||
|
||
# Execute all unit tests in the solution | ||
- name: Execute unit tests | ||
run: dotnet test | ||
|