diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..1caa509 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,42 @@ +name: Run Tests + +on: + push: + branches: [ main ] + paths: +# this ensures that tests are run when adding new tests or packages + - 'tests/**' + - 'validation_packages/**' + - '.github/**' + pull_request: + branches: [ main ] + paths: +# here, also run tests when a pr targets source files + - 'tests/**' + - 'validation_packages/**' + - '.github/**' + +jobs: + test-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.x.x + - name: test + working-directory: ./ + run: dotnet test + + test-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.x.x + - name: test + working-directory: ./ + run: dotnet test \ No newline at end of file diff --git a/ValidationPackages.sln b/ValidationPackages.sln index 876fd8d..da3924d 100644 --- a/ValidationPackages.sln +++ b/ValidationPackages.sln @@ -13,6 +13,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sln", "sln", "{55422101-E1F README.md = README.md EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".ci", ".ci", "{8CF8F7A6-E0A5-4B72-8FEF-52084354A4CF}" + ProjectSection(SolutionItems) = preProject + .github\workflows\manage-issues.yml = .github\workflows\manage-issues.yml + .github\workflows\run-tests.yml = .github\workflows\run-tests.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU