From 8d2608d57c5a377a3bac4c8cf1c150080b84e7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= <john@dewey.ws> Date: Sat, 11 Nov 2023 10:17:55 -0800 Subject: [PATCH] Added few more actions --- .github/codecov.yml | 13 +++++++++++++ .github/dependabot.yml | 12 ++++++++++++ .github/labeler.yml | 10 ++++++++++ .github/workflows/cov.yml | 24 ++++++++++++++++++++++++ .github/workflows/labeler.yml | 19 +++++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 .github/codecov.yml create mode 100644 .github/dependabot.yml create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/cov.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000..f8758cd --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,13 @@ +--- +# codecov: +# require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "50...100" + +comment: + layout: "reach,diff,flags,files,footer" + behavior: default + require_changes: false diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e7ce41d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..a80a09e --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,10 @@ +--- +test/unit: + - "**/*_test.go" + +test/integration: + - tests/* + - tests/*/** + +kind/yaml: + - "**/*.yaml" diff --git a/.github/workflows/cov.yml b/.github/workflows/cov.yml new file mode 100644 index 0000000..b79c0dc --- /dev/null +++ b/.github/workflows/cov.yml @@ -0,0 +1,24 @@ +--- +name: Coverage +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + - name: Install Task + uses: arduino/setup-task@v1 + with: + version: 3.x + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Test + run: task cov + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..09ee22c --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,19 @@ +--- + +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"