Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨[Workflow] Run tests on specific folder changes #440

Merged
merged 8 commits into from
Feb 11, 2025
Merged
2 changes: 2 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Run dapp tests

on:
pull_request:
paths:
- 'apps/dapp/**'
workflow_dispatch:
permissions:
contents: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Test contracts

on:
pull_request:
paths:
- 'apps/contracts/**'
workflow_dispatch:
permissions:
contents: write
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test-dotnet-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test .NET app

on:
pull_request:
paths:
- 'packages/dotnet-sdk/**'
workflow_dispatch:

permissions:
contents: write
pull-requests: write
issues: read
packages: none

jobs:
test-dotnet-package:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: ['8.0']
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Navigate to folder
run: pwd

- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}

- name: Restore dependencies
run: dotnet restore packages/dotnet-sdk

- name: Run tests with coverage
run: dotnet test packages/dotnet-sdk --no-restore