diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..68c9948 --- /dev/null +++ b/.github/dependabot.yml @@ -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' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7929d6..f347c99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,3 @@ ---- name: CI on: push: @@ -6,21 +5,41 @@ on: - 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 }} diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 0000000..ec94353 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -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 }} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 72ccae0..0000000 --- a/renovate.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["config:base"], - "schedule": "every month", - "rangeStrategy": "bump", - "automerge": true, - "automergeType": "branch", - "stabilityDays": 3, - "major": { - "automerge": false - }, - "postUpdateOptions": ["npmDedupe"], - "packageRules": [ - { - "packageNames": ["postcss"], - "rangeStrategy": "replace" - } - ] -}