Skip to content

build(deps): bump github.com/prometheus-operator/prometheus-operator/… #44

build(deps): bump github.com/prometheus-operator/prometheus-operator/…

build(deps): bump github.com/prometheus-operator/prometheus-operator/… #44

Workflow file for this run

name: dev
on:
push:
branch: [ "main" ]
pull_request:
jobs:
check:
name: Golang Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: --timeout=15m --tests=false --exclude-use-default
unit-test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github