Reverted back path changes #22
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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: ["*.md"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: [ '7.0.x' ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Restore dependencies | |
run: dotnet restore | |
working-directory: src/ | |
- name: Build | |
run: dotnet build --no-restore | |
working-directory: src/ | |
- name: Running OpenAPI Spec diff action | |
id: test_ete | |
uses: oasdiff/oasdiff-action/diff@main | |
with: | |
base: 'base-spec.yaml' | |
revision: 'revision-spec.yaml' | |
format: 'text' | |
fail-on-diff: false | |
- name: 'Run Spectral - CLI' | |
run: | | |
npm install -g @stoplight/spectral-cli | |
spectral lint ./base-spec.yaml --ruleset ./rules.spectral.yaml | |
shell: bash | |
- name: Run Spectral | |
uses: stoplightio/spectral-action@latest | |
with: | |
file_glob: ./base-spec.yaml | |
spectral_ruleset: rules.spectral.yaml |