Skip to content

Add renovate.json

Add renovate.json #6

Workflow file for this run

name: build-push
on:
push:
workflow_dispatch:
jobs:
lint-test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version-file: "go.mod"
- name: go mod tidy
run: |
go mod tidy
if ! git diff --exit-code go.mod go.sum; then
echo "Error: go.mod or go.sum is not tidy. Run 'go mod tidy' locally and commit the changes."
exit 1
fi
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
with:
version: latest
- name: Install dependencies
run: go get .
- run: go build
- name: unit test
run: go test -race -v ./...
- name: coverage
run: go test -v -coverprofile=coverage.out -covermode=atomic ./...
- name: upload coverage to codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5
with:
files: ./coverage.out
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run:
needs: [lint-test]
uses: libops/.github/.github/workflows/build-push-ghcr.yaml@main
permissions:
contents: read
packages: write
secrets: inherit