From a28eed8bf6a2bcf1af72634abda90b767b7fcabe Mon Sep 17 00:00:00 2001 From: Rob van der Leek <5324924+robvanderleek@users.noreply.github.com> Date: Wed, 15 Jan 2025 22:50:04 +0100 Subject: [PATCH] add codelimit (#414) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add workflow for CodeLimit * docs: 📝 Add badge --- .github/dependabot.yml | 8 +++++++- .github/workflows/codelimit.yml | 19 +++++++++++++++++++ README.md | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/codelimit.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f931b19..7e64181 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,13 @@ version: 2 updates: - package-ecosystem: npm - directory: "/" + directory: "/serverless" + schedule: + interval: weekly + time: "04:00" + open-pull-requests-limit: 10 +- package-ecosystem: npm + directory: "/standalone" schedule: interval: weekly time: "04:00" diff --git a/.github/workflows/codelimit.yml b/.github/workflows/codelimit.yml new file mode 100644 index 0000000..8aac20b --- /dev/null +++ b/.github/workflows/codelimit.yml @@ -0,0 +1,19 @@ +name: 'codelimit' + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: 'Checkout sources' + uses: actions/checkout@v4 + + - name: 'Run CodeLimit' + uses: getcodelimit/codelimit-action@v1 diff --git a/README.md b/README.md index 57f90b8..01185ec 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@
[![Build Status](https://github.com/robvanderleek/capture-website-api/workflows/CICD/badge.svg)](https://github.com/robvanderleek/capture-website-api/actions) -[![Maintainability](https://api.codeclimate.com/v1/badges/20056816e22527745a74/maintainability)](https://codeclimate.com/github/robvanderleek/capture-website-api/maintainability) +[![CodeLimit](https://github.com/robvanderleek/capture-website-api/blob/_codelimit_reports/add-codelimit/badge.svg)](https://github.com/robvanderleek/capture-website-api/blob/_codelimit_reports/add-codelimit/codelimit.md) [![Dependabot](https://badgen.net/badge/Dependabot/enabled/green?icon=dependabot)](https://dependabot.com/) [![DockerHub image pulls](https://img.shields.io/docker/pulls/robvanderleek/capture-website-api)](https://hub.docker.com/repository/docker/robvanderleek/capture-website-api) ![Vercel](https://vercelbadge.vercel.app/api/robvanderleek/capture-website-api)