From f7e2ccd31df87c7493666a3cc11b1c2c9a5dd983 Mon Sep 17 00:00:00 2001 From: Roberto D'Auria Date: Wed, 21 Jan 2026 19:17:20 +0100 Subject: [PATCH] ci: add GitHub workflows and dependabot config --- .github/dependabot.yml | 27 +++++++++++++++++++++++++++ .github/workflows/coverage.yml | 27 +++++++++++++++++++++++++++ .github/workflows/test.yml | 21 +++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/coverage.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6c16e47 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,27 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + groups: + gomod-minor-patch: + patterns: + - "*" + update-types: + - "minor" + - "patch" + gomod-major: + patterns: + - "*" + update-types: + - "major" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + actions: + patterns: + - "*" diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..014cb1d --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,27 @@ +name: coverage +on: + pull_request: + push: + branches: + - "main" + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v6 + with: + go-version: "1.25" + - uses: actions/checkout@v6 + - run: go test -coverprofile=speed-proxy.cov -coverpkg=./... ./... + - uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: speed-proxy.cov + parallel: true + finish: + needs: coverage + runs-on: ubuntu-latest + steps: + - uses: shogo82148/actions-goveralls@v1 + with: + parallel-finished: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..715b7b8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: test +on: + pull_request: + push: + branches: + - "main" +jobs: + build_and_run_tests: + runs-on: "${{ matrix.os }}" + strategy: + matrix: + go: ["1.25"] + os: ["ubuntu-24.04"] + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version: "${{ matrix.go }}" + cache: true + - run: go build -v ./... + - run: go test -race -v ./...