From b404ea6fc3cdb389b63b556c1029991620ee9f89 Mon Sep 17 00:00:00 2001 From: Anurag Mittal Date: Tue, 12 Nov 2024 14:56:46 +0100 Subject: [PATCH] COSI-58: add-dependabot-and-codecov-in-ci --- .github/dependabot.yml | 38 +++++++++++++++++++ .github/workflows/ci-build-and-unit-tests.yml | 6 +++ 2 files changed, 44 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..c584d8df --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,38 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + + +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "daily" + time: "07:00" + timezone: "Europe/Paris" + open-pull-requests-limit: 10 + reviewers: + - "scality/object" + commit-message: + prefix: "gomod" + include: "scope" + labels: + - "gomod" + - "dependencies" + + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + time: "08:00" + reviewers: + - "scality/object" + commit-message: + prefix: "github-actions" + include: "scope" + labels: + - "github-actions" + - "dependencies" diff --git a/.github/workflows/ci-build-and-unit-tests.yml b/.github/workflows/ci-build-and-unit-tests.yml index 179dea9b..59ec5931 100644 --- a/.github/workflows/ci-build-and-unit-tests.yml +++ b/.github/workflows/ci-build-and-unit-tests.yml @@ -29,6 +29,12 @@ jobs: - name: Run tests run: make test + - name: Upload test coverage to codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: scality/cosi-driver + dev-container-build: permissions: contents: read