From a93f1feaeeef15d041768c0d70233ebfe69bb547 Mon Sep 17 00:00:00 2001 From: Travis Illig Date: Mon, 8 Jun 2026 12:32:16 -0700 Subject: [PATCH] Remove redundant per-repo workflows in favor of centralized CI --- .github/workflows/build.yml | 32 --------------------------- .github/workflows/ci.yml | 34 ----------------------------- .github/workflows/dotnet-format.yml | 14 ------------ .github/workflows/pre-commit.yml | 12 ---------- .github/workflows/publish.yml | 29 ------------------------ 5 files changed, 121 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/dotnet-format.yml delete mode 100644 .github/workflows/pre-commit.yml delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 2568038..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Build and Test -on: - workflow_call: - secrets: - CODECOV_TOKEN: - description: Token for uploading code coverage metrics to CodeCov.io. - required: true -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v6 - - name: Setup .NET - uses: actions/setup-dotnet@v5 - with: - dotnet-version: 10.0.x - - name: Build and test - run: dotnet msbuild ./default.proj - - name: Upload coverage - uses: codecov/codecov-action@v5 - with: - fail_ci_if_error: true - files: artifacts/logs/*/coverage.cobertura.xml - token: ${{ secrets.CODECOV_TOKEN }} - - name: Upload package artifacts - uses: actions/upload-artifact@v7 - with: - name: packages - path: | - artifacts/packages/*.nupkg - artifacts/packages/*.snupkg diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 0d8409d..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Continuous Integration -on: - pull_request: - branches: - - develop - - master - push: - branches: - - develop - - master - - feature/* - tags: - - v[0-9]+.[0-9]+.[0-9]+ -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true -jobs: - dotnet-format: - uses: ./.github/workflows/dotnet-format.yml - pre-commit: - uses: ./.github/workflows/pre-commit.yml - build: - uses: ./.github/workflows/build.yml - secrets: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - publish: - uses: ./.github/workflows/publish.yml - needs: - - build - - dotnet-format - - pre-commit - if: ${{ github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/v') }} - secrets: - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml deleted file mode 100644 index 6758ab1..0000000 --- a/.github/workflows/dotnet-format.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: dotnet format -on: - workflow_call: -jobs: - dotnet-format: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - name: Setup .NET 10 - uses: actions/setup-dotnet@v5 - with: - dotnet-version: 10.0.x - - name: dotnet format - run: dotnet format Autofac.Extras.AggregateService.sln --verify-no-changes diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index b7499f4..0000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: pre-commit -on: - workflow_call: -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: actions/setup-python@v6 - with: - python-version: 3.x - - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 63a3d5e..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Publish -on: - workflow_call: - secrets: - NUGET_API_KEY: - description: Token for publishing packages to NuGet. - required: true -jobs: - publish: - runs-on: ubuntu-latest - steps: - - name: Setup .NET - uses: actions/setup-dotnet@v5 - with: - dotnet-version: 10.0.x - - name: Download package artifacts - uses: actions/download-artifact@v8 - with: - name: packages - path: artifacts/packages - - name: Publish to GitHub Packages - run: | - dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/autofac/index.json" - dotnet nuget push ./artifacts/packages/*.nupkg --skip-duplicate --source github --api-key ${{ secrets.GITHUB_TOKEN }} - dotnet nuget push ./artifacts/packages/*.snupkg --skip-duplicate --source github --api-key ${{ secrets.GITHUB_TOKEN }} - - name: Publish to NuGet - if: ${{ startsWith(github.ref, 'refs/tags/v') }} - run: | - dotnet nuget push ./artifacts/packages/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}