diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 000000000..bb1cd03ca --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,39 @@ + +name: PR Verification + +on: + workflow_dispatch: + pull_request: + paths-ignore: + - "**/*" + - '!src/Refitter/**/*.cs' + - '!src/Refitter.Core/**/*.cs' + - '!src/Refitter.SourceGenerator/**/*.cs' + - '!src/Refitter/**/*.csproj' + - '!src/Refitter.Core/**/*.csproj' + - '!src/Refitter.SourceGenerator/**/*.csproj' + - "!.github/workflows/template.yml" + - "!.github/workflows/template-url.yml" + - "!.github/workflows/smoke-tests.yml" + - "!test/smoke-tests.ps1" + branches: + - "main" + +permissions: + contents: read + +jobs: + + script: + runs-on: ubuntu-latest + steps: + - name: 🛒 Checkout repository + uses: actions/checkout@v5 + - uses: actions/setup-dotnet@v5 + with: + dotnet-version: '9.0' + + - name: 🛠️ Run smoke test script + run: ./smoke-tests.ps1 + working-directory: test + shell: pwsh diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 5bab9a24c..fa4c97c4c 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -16,19 +16,6 @@ on: - "!.github/workflows/template-url.yml" - "!.github/workflows/smoke-tests.yml" - "!test/smoke-tests.ps1" - pull_request: - paths-ignore: - - "**/*" - - '!src/Refitter/**/*.cs' - - '!src/Refitter.Core/**/*.cs' - - '!src/Refitter.SourceGenerator/**/*.cs' - - '!src/Refitter/**/*.csproj' - - '!src/Refitter.Core/**/*.csproj' - - '!src/Refitter.SourceGenerator/**/*.csproj' - - "!.github/workflows/template.yml" - - "!.github/workflows/template-url.yml" - - "!.github/workflows/smoke-tests.yml" - - "!test/**/*" branches: - "main"