ci: test cli with various path types #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |