Skip to content

added build pipelines in github actions #1

added build pipelines in github actions

added build pipelines in github actions #1

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Set env
run: |
echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" >> $GITHUB_ENV
echo "DOTNET_hostBuilder:reloadConfigOnChange=false" >> $GITHUB_ENV
- name: Clean
run: |
dotnet clean ./NetInteractor.sln
dotnet nuget locals all --clear
- name: Build
run: dotnet build -c Release
- name: Test
run: |
cd test/NetInteractor.Test
dotnet test