Skip to content

Commit 7047606

Browse files
committed
Added paths to workflows
1 parent 902dbf4 commit 7047606

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Build
33
on:
44
push:
55
branches: [v2.4]
6+
paths:
7+
- src/box2dx/Box2D.NetStandard/**
68

79
jobs:
810
build:
@@ -13,6 +15,6 @@ jobs:
1315
- name: Setup .NET Core
1416
uses: actions/setup-dotnet@v1
1517
with:
16-
dotnet-version: '5.0.x'
18+
dotnet-version: "5.0.x"
1719
- name: Box2D Build
18-
run: dotnet build src/box2dx/Box2D.NetStandard -c Release
20+
run: dotnet build src/box2dx/Box2D.NetStandard -c Release

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: Unit Tests
33
on:
44
push:
55
branches: [v2.4]
6+
paths:
7+
- src/**
68
pull_request:
79
branches: [v2.4]
10+
paths:
11+
- src/**
812

913
jobs:
1014
build:
@@ -15,6 +19,6 @@ jobs:
1519
- name: Setup .NET Core
1620
uses: actions/setup-dotnet@v1
1721
with:
18-
dotnet-version: '3.1.x'
22+
dotnet-version: "3.1.x"
1923
- name: Execute Tests
20-
run: dotnet test src/ -c Release
24+
run: dotnet test src/ -c Release

0 commit comments

Comments
 (0)