Skip to content

Commit 0e569c4

Browse files
authored
Merge pull request #7 from tidusjar/fix-example
Fix example
2 parents de9a6db + 9de8d77 commit 0e569c4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/example.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: Example Workflow
22

33
on:
4+
schedule:
5+
- cron: "0 0 * * MON"
46
workflow_dispatch:
57

68
jobs:
79
build:
810
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: examples
914

1015
steps:
1116
- uses: actions/checkout@v3
@@ -20,4 +25,4 @@ jobs:
2025
run: dotnet tool install --global Wiremock.OpenAPIValidator
2126
- name: Run Validator
2227
run: |
23-
wiremockopenapi -o "./examples/openapi/openapi.yml" -w "./example/wiremock/mappings"
28+
wiremockopenapi -o "./openapi/openapi.yaml" -w "./wiremock/mappings"

src/Wiremock.OpenAPIValidator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static async Task<int> Main(string[] args)
3939

4040
if (string.IsNullOrEmpty(wireMockPath) || string.IsNullOrEmpty(openApiPath))
4141
{
42-
return 0;
42+
return 1;
4343
}
4444

4545

0 commit comments

Comments
 (0)