Skip to content

fix: update prometheus monitoring on MySQL #142

fix: update prometheus monitoring on MySQL

fix: update prometheus monitoring on MySQL #142

Workflow file for this run

name: CI
"on":
push:
branches:
- master
paths-ignore:
- README.md
pull_request:
branches:
- '*'
paths-ignore:
- README.md
env:
GO_VERSION: "1.19"
TRIVY_VERSION: "v0.44.1"
COG_VERSION: "5.2.0"
LINTER_VERSION: "v1.51.2"
permissions:
contents: read
jobs:
build:
name: Build
timeout-minutes: 15
needs:
- lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Make build
run: make build
lint:
name: Lint
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Cache golangci-lint
id: golangci-lint
uses: actions/cache@v3
with:
path: |
~/.cache/golangci-lint
key: ${{ runner.os }}-golangci-lint
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $HOME/.local/bin ${{ env.LINTER_VERSION }}
- name: Lint all modules with golangci-lint
run: |
PATH=$PATH:$HOME/.local/bin make lint
test:
name: Test
needs:
- build
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Run tests and generate coverage report
run: make test