Skip to content

Add github action files. #1

Add github action files.

Add github action files. #1

Workflow file for this run

name: Test
on:
push:
branches:
- master
paths:
- 'src/**'
- 'test/**'
- '.github/workflows/**'
env:
SOLUTION: Fody.Cli.sln
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 8.0.x
- name: Remove Samples
run: dotnet sln ${{ env.SOLUTION }} remove $(find samples -name "*.csproj")
- name: Restore NuGets
run: dotnet restore ${{ env.SOLUTION }}
- name: Build Solution in RELEASE
run: dotnet build --configuration Release --no-restore ${{ env.SOLUTION }}