Skip to content

Commit c75fb6d

Browse files
committed
Move workflow scripts from example/.github/workflows to .github/workflows
WE2-933 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
1 parent b8ce11b commit c75fb6d

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

example/.github/workflows/dotnet-build.yml renamed to .github/workflows/dotnet-build-example.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
name: Dotnet build
1+
name: Dotnet example build
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
paths:
6+
- 'example/**'
7+
- '.github/workflows/*example*'
8+
pull_request:
9+
paths:
10+
- 'example/**'
11+
- '.github/workflows/*example*'
12+
13+
defaults:
14+
run:
15+
working-directory: ./example
416

517
jobs:
618
build:
@@ -50,5 +62,5 @@ jobs:
5062
run: dotnet test --no-restore --verbosity normal src/WebEid.AspNetCore.Example.sln
5163

5264
- name: Test building Docker image
53-
working-directory: ./src
65+
working-directory: ./example/src
5466
run: docker build -t web-eid-asp-dotnet-example .

.github/workflows/dotnet-build-linux.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Dotnet Linux build
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'example/**'
7+
- '.github/workflows/*example*'
8+
pull_request:
9+
paths-ignore:
10+
- 'example/**'
11+
- '.github/workflows/*example*'
412

513
jobs:
614
build:

.github/workflows/dotnet-build-windows.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Dotnet Windows build
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'example/**'
7+
- '.github/workflows/*example*'
8+
pull_request:
9+
paths-ignore:
10+
- 'example/**'
11+
- '.github/workflows/*example*'
412

513
jobs:
614
build:

0 commit comments

Comments
 (0)