Skip to content

Commit

Permalink
chore: replace renovate with dependabot (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign committed Jun 18, 2024
1 parent 120185b commit 87136f8
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 25 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'monthly'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'monthly'
groups:
upload-download-artifact:
patterns:
- 'actions/upload-artifact'
- 'actions/download-artifact'
33 changes: 26 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,45 @@
---
name: CI
on:
push:
branches:
- master
pull_request:

env:
CI: true

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

steps:
- uses: actions/checkout@v4

- name: Use Node.js 16.15
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: '16.15'
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 }}
18 changes: 0 additions & 18 deletions renovate.json

This file was deleted.

0 comments on commit 87136f8

Please sign in to comment.