Skip to content

Commit

Permalink
Merge pull request #1 from owasp-dep-scan/feature/ci
Browse files Browse the repository at this point in the history
Create workflow
  • Loading branch information
timmyteo committed Dec 4, 2023
2 parents 4b1a798 + 1e5486d commit c480344
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build and test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '6.0.x', '7.0.x', '8.0.x' ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore ./Dosai
- name: Test
run: |
dotnet run --project ./Dosai/ namespaces --path ./Dosai/bin/x64/Debug/net8.0/Dosai.dll
dotnet run --project ./Dosai/ methods --path ./Dosai/Dosai.cs

0 comments on commit c480344

Please sign in to comment.