Skip to content

Update build-test.yml to include ls command before dotnet clean #2

Update build-test.yml to include ls command before dotnet clean

Update build-test.yml to include ls command before dotnet clean #2

Workflow file for this run

name: .NET Build and Test
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
# container:
# image: mcr.microsoft.com/dotnet/sdk:7.0
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetches all history for all tags and branches
- name: Set up .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
- name: Change directory to /src
run: cd src
- name: Clean
run: ls && dotnet clean CiFilter.slnf
- name: Restore
run: dotnet restore CiFilter.slnf
- name: Build
run: dotnet build CiFilter.slnf --no-restore
# Optionally, you can add a test step if you have tests in your solution
- name: Test
run: dotnet test CiFilter.slnf --no-build --verbosity normal