Skip to content

build(deps): bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 #186

build(deps): bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0

build(deps): bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 #186

Workflow file for this run

name: Code
on:
pull_request:
paths-ignore:
- deploy/**
- "**/*.md"
permissions:
contents: read
pull-requests: read
env:
VERSION_KIND: v0.20.0
VERSION_GOLANGCILINT: latest
VERSION_GOLANG: '1.20.7'
jobs:
static-analysis:
name: Static Analysis
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version: ${{ env.VERSION_GOLANG }}
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.VERSION_GOLANGCILINT }}
only-new-issues: true
args: --timeout 3m --verbose
#args: --issues-exit-code=0
#skip-cache: true
#skip-build-cache: true
#skip-pkg-cache: true
unit-testing:
name: Unit Testing
runs-on: ubuntu-22.04
steps:
- name: Create KinD cluster
uses: engineerd/setup-kind@v0.5.0
with:
version: ${{ env.VERSION_KIND }}
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version: ${{ env.VERSION_GOLANG }}
- name: Restore cached Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go${{ env.VERSION_GOLANG }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go${{ env.VERSION_GOLANG }}-
- name: Run unit tests
run: |
set -euo pipefail
kubectl cluster-info
go test -v -failfast -timeout 1m -coverprofile=coverage.cov ./internal
go tool cover -html=coverage.cov -o coverage.html
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage.html