Skip to content

Commit

Permalink
ad test ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Aug 21, 2024
1 parent 8f54826 commit 3294df8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions ValidationPackages.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3294df8

Please sign in to comment.