Skip to content

Merge pull request #162 from kolappannathan/dev #85

Merge pull request #162 from kolappannathan/dev

Merge pull request #162 from kolappannathan/dev #85

Workflow file for this run

name: CD
on:
push:
branches: [ main ]
paths-ignore:
- '.github/**'
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
show-progress: false
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: |
cd ./src/WebApiBolierplate
dotnet restore
- name: Build
run: |
cd ./src/WebApiBolierplate
dotnet build --configuration Release --no-restore
- name: Test
run: |
cd ./src/WebApiBolierplate
dotnet test ./Core.Test/Core.Test.csproj
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
show-progress: false
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Install dependencies
run: |
cd ./src/WebApiBolierplate
dotnet restore
- name: Build
run: |
cd ./src/WebApiBolierplate
dotnet build --configuration Release --no-restore
- name: Test
run: |
cd ./src/WebApiBolierplate
dotnet test ./Core.Test/Core.Test.csproj