Skip to content

bunnings.diy.demo.orderprocessor #36

bunnings.diy.demo.orderprocessor

bunnings.diy.demo.orderprocessor #36

Workflow file for this run

name: "bunnings.diy.demo.orderprocessor"
concurrency: bunnings.diy.demo.orderprocessor
on:
workflow_dispatch:
# push:
# branches:
# - main
# pull_request:
# branches: [ 'main' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
project-name:
- Bunnings.DIY.OrderProcessor
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
- name: Restore
run: dotnet restore tests/${{ matrix.project-name }}.Tests/${{ matrix.project-name }}.Tests.csproj
- name: Build
run: dotnet build --configuration Release --no-restore tests/${{ matrix.project-name }}.Tests/${{ matrix.project-name }}.Tests.csproj
- name: Test
run: dotnet test --no-restore --verbosity normal --logger "trx;LogFileName=test-results.trx" tests/${{ matrix.project-name }}.Tests/${{ matrix.project-name }}.Tests.csproj
- name: Restore DotNet Tools
run: dotnet tool restore
- name: Check Code Format
run: dotnet csharpier . --check
- name: Setup Npm
uses: actions/setup-node@v3
with:
node-version: 'lts'
- name: Npm Install
run: npm install
- uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: test-results-${{ matrix.project-name }}
path: 'test-results.trx'