Skip to content

Commit

Permalink
#19 yaml testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian-Webster committed Dec 6, 2023
1 parent 0a7dcdf commit d3d1933
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
name: Build Action
name: Build actions

on:
push:
paths:
- 'DataAccess/DataAccess.Repository/**'
- 'DataAccess/Extensions/DataAccess.Repository.HotChocolate/**'
on: push

jobs:

build:

runs-on: ubuntu-latest

strategy:
matrix:
project: ['DataAccess.Repository', 'DataAccess.Repository.HotChocolate']

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
dotnet-version: 7.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/${{ matrix.project }}'
run: dotnet restore

# Build project
- name: Build
run: dotnet build --configuration Release 'DataAccess/${{ matrix.project }}'
run: dotnet build --configuration Release

# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test

0 comments on commit d3d1933

Please sign in to comment.