Skip to content

Commit

Permalink
chore: replace renovate with dependabot (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign authored Jun 18, 2024
1 parent 12ef209 commit 1aa932b
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 39 deletions.
31 changes: 31 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
groups:
jest:
patterns:
- 'jest'
- 'babel-jest'
- 'ts-jest'
- '@types/jest'
rollup:
patterns:
- 'rollup'
- 'rollup-*'
- '@rollup/*'
babel:
patterns:
- '@babel/*'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
groups:
upload-download-artifact:
patterns:
- 'actions/upload-artifact'
- 'actions/download-artifact'
27 changes: 22 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,37 @@ on:
pull_request:

jobs:
build:
test-and-build:
name: 'Test and build'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js v20
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- run: npm ci

- name: Upload code coverage
uses: coverallsapp/github-action@master
- uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage

upload-code-coverage:
name: 'Upload code coverage'
needs: ['test-and-build']
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: code-coverage
path: coverage

- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Dependabot auto merge

on:
pull_request:

jobs:
dependabot-auto-merge:
name: 'Dependabot auto merge'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.READ_AND_WRITE_TOKEN }}
34 changes: 0 additions & 34 deletions renovate.json

This file was deleted.

0 comments on commit 1aa932b

Please sign in to comment.