Skip to content

fix workflows

fix workflows #15

Workflow file for this run

name: Deploy to nuget
on:
push:
branches:
- "main"
env:
PROJECT_LIB_PATH: 'src/PupaLib.FileIO/PupaLib.FileIO.csproj'
PROJECT_TESTS_PATH: 'src/PupaLib.FileIO.Tests/PupaLib.FileIO.Tests.csproj'
jobs:
test:
name: "Test"
runs-on: "ubuntu-latest"
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: "Setup dotnet"
uses: actions/setup-dotnet@v3
with:
dotnet-version: '10.0.x'
- name: "Resotore lib project"
run: dotnet restore ${{ env.PROJECT_LIB_PATH }}
- name: "Resotore test project"
run: dotnet restore ${{ env.PROJECT_TESTS_PATH }}
- name: "Build lib project"
run: dotnet build ${{ env.PROJECT_LIB_PATH }}
- name: "Build test project"
run: dotnet build ${{ env.PROJECT_TESTS_PATH }}
- name: "Run test"
run: dotnet test ${{ env.PROJECT_TESTS_PATH }} --no-build --verbosity normal