Skip to content

54 create read of repository #53

54 create read of repository

54 create read of repository #53

Workflow file for this run

name: build and test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
paths:
- '**.cs'
- '**.csproj'
env:
DOTNET_VERSION: '8.0.101' # The .NET SDK version to use
SLN_NAME: AmIVulnerable.sln
jobs:
build-and-test:
name: build-and-test-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: cd & Install dependencies
run: |
cd code/AmIVulnerable
dotnet restore ${{ env.SLN_NAME }}
- name: Build
run: |
cd code/AmIVulnerable
dotnet build ${{ env.SLN_NAME }} --configuration Release --no-restore
- name: Test
run: |
cd code/AmIVulnerable
dotnet test ${{ env.SLN_NAME }} --no-restore --verbosity normal