-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (45 loc) · 1.79 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Continuous Integration
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.x
8.x
- name: Build
run: dotnet build
- name: Test
run: dotnet test --no-build
- name: Run CLI with absolute paths
run: >
dotnet run
--no-build
--project src/Criteo.OpenApi.Comparator.Cli/Criteo.OpenApi.Comparator.Cli.csproj
--framework net8
-o $PWD/src/Criteo.OpenApi.Comparator.UTest/Resource/reference_redirection_type_changed/old.yaml
-n $PWD/src/Criteo.OpenApi.Comparator.UTest/Resource/reference_redirection_type_changed/new.yaml
if: always()
- name: Run CLI with relative paths
run: >
dotnet run
--no-build
--project src/Criteo.OpenApi.Comparator.Cli/Criteo.OpenApi.Comparator.Cli.csproj
--framework net8
-o src/Criteo.OpenApi.Comparator.UTest/Resource/reference_redirection_type_changed/old.yaml
-n src/Criteo.OpenApi.Comparator.UTest/Resource/reference_redirection_type_changed/new.yaml
if: always()
- name: Run CLI with URLs
run: >
dotnet run
--no-build
--project src/Criteo.OpenApi.Comparator.Cli/Criteo.OpenApi.Comparator.Cli.csproj
--framework net8
-o https://raw.githubusercontent.com/criteo/openapi-comparator/main/src/Criteo.OpenApi.Comparator.UTest/Resource/reference_redirection_type_changed/old.yaml
-n https://raw.githubusercontent.com/criteo/openapi-comparator/main/src/Criteo.OpenApi.Comparator.UTest/Resource/reference_redirection_type_changed/new.yaml
if: always()