diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 6378b02..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,28 +0,0 @@ -version: 2 -updates: - - package-ecosystem: npm - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 20 - labels: - - dependencies - versioning-strategy: widen - groups: - dependencies: - patterns: - - "*" - update-types: - - "minor" - - "patch" - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 20 - labels: - - dependencies - groups: - dependencies: - patterns: - - "*" diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml deleted file mode 100644 index c40d79b..0000000 --- a/.github/workflows/dependabot.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Dependabot - -on: pull_request - -permissions: - contents: write - pull-requests: write - -jobs: - dependabot-auto-merge: - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' - steps: - - name: Generate Token - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 - id: app-token - with: - app-id: ${{ secrets.BOT_APP_ID }} - private-key: ${{ secrets.BOT_PRIVATE_KEY }} - - - name: Dependabot metadata - id: dependabot-metadata - uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0 - with: - github-token: "${{ steps.app-token.outputs.token }}" - - - name: Enable auto-merge for Dependabot PRs - if: steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' - run: | - if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; - then gh pr review --approve "$PR_URL" - else echo "PR already approved, skipping additional approvals to minimize emails/notification noise."; - fi - - gh pr merge --auto --squash "$PR_URL" - env: - PR_URL: ${{ github.event.pull_request.html_url }} - GH_TOKEN: ${{ steps.app-token.outputs.token }} diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml deleted file mode 100644 index ee0524f..0000000 --- a/.github/workflows/dependency-review.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: "Dependency Review" -on: [pull_request] - -permissions: - contents: read - -jobs: - dependency-review: - runs-on: ubuntu-latest - steps: - - name: "Checkout Repository" - uses: actions/checkout@v6 - - name: "Dependency Review" - uses: actions/dependency-review-action@v4 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 3d7ffe9..3ac8d75 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,4 +1,4 @@ -name: webpack-dev-middleware +name: CI on: push: @@ -63,18 +63,17 @@ jobs: run: pnpm exec commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose test: - name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} + name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [18.x, 20.x, 22.x, 24.x] - webpack-version: [latest] + os: [ubuntu-latest, windows-latest] + node-version: [20.x, 24.x] runs-on: ${{ matrix.os }} concurrency: - group: test-${{ matrix.os }}-v${{ matrix.node-version }}-${{ matrix.webpack-version }}-${{ github.ref }} + group: test-${{ matrix.os }}-v${{ matrix.node-version }}-${{ github.ref }} cancel-in-progress: true steps: @@ -94,10 +93,5 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Run tests for webpack version ${{ matrix.webpack-version }} + - name: Run tests run: pnpm run test:coverage -- --ci - - - name: Submit coverage data to codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }}