Skip to content

Some refactor and tests #13

Some refactor and tests

Some refactor and tests #13

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Build & Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
SOLUTION_NAME: Distractive.Formatters.sln
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Set up dependency caching for faster builds
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore "$SOLUTION_NAME"
- name: Build
run: dotnet build "$SOLUTION_NAME" --no-restore
- name: Test
run: dotnet test "$SOLUTION_NAME" --no-build --verbosity normal