Skip to content

Merge pull request #50 from WSE-research/30-json-ld-update-for-tree-j… #46

Merge pull request #50 from WSE-research/30-json-ld-update-for-tree-j…

Merge pull request #50 from WSE-research/30-json-ld-update-for-tree-j… #46

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