Moving fully to GH actions. (#1288)
Signed-off-by: bwplotka <bwplotka@gmail.com>
This commit is contained in:
parent
e4ff34d23e
commit
7352ab7f80
|
@ -1,63 +0,0 @@
|
||||||
version: 2.1
|
|
||||||
orbs:
|
|
||||||
go: circleci/go@1.7.1
|
|
||||||
prometheus: prometheus/prometheus@0.16.0
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
parameters:
|
|
||||||
go_version:
|
|
||||||
type: string
|
|
||||||
run_style_and_unused:
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
run_lint:
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
use_gomod_cache:
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
docker:
|
|
||||||
- image: cimg/go:<< parameters.go_version >>
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- when:
|
|
||||||
condition: << parameters.use_gomod_cache >>
|
|
||||||
steps:
|
|
||||||
- go/load-cache:
|
|
||||||
key: v1-go<< parameters.go_version >>
|
|
||||||
- run: make check_license test
|
|
||||||
- when:
|
|
||||||
condition: << parameters.run_lint >>
|
|
||||||
steps:
|
|
||||||
- run: make lint
|
|
||||||
- when:
|
|
||||||
condition: << parameters.run_style_and_unused >>
|
|
||||||
steps:
|
|
||||||
- run: make style unused
|
|
||||||
- when:
|
|
||||||
condition: << parameters.use_gomod_cache >>
|
|
||||||
steps:
|
|
||||||
- go/save-cache:
|
|
||||||
key: v1-go<< parameters.go_version >>
|
|
||||||
- store_test_results:
|
|
||||||
path: test-results
|
|
||||||
workflows:
|
|
||||||
version: 2
|
|
||||||
client_golang:
|
|
||||||
jobs:
|
|
||||||
# Refer to README.md for the currently supported versions.
|
|
||||||
- test:
|
|
||||||
name: go-1-18
|
|
||||||
go_version: "1.18"
|
|
||||||
run_lint: true
|
|
||||||
- test:
|
|
||||||
name: go-1-19
|
|
||||||
go_version: "1.19"
|
|
||||||
run_lint: true
|
|
||||||
- test:
|
|
||||||
name: go-1-20
|
|
||||||
go_version: "1.20"
|
|
||||||
run_lint: true
|
|
||||||
# Style and unused/missing packages are only checked against
|
|
||||||
# the latest supported Go version.
|
|
||||||
run_style_and_unused: true
|
|
|
@ -1,15 +1,15 @@
|
||||||
name: Test and Lint
|
---
|
||||||
|
name: Go
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
- 'release-*'
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
name: Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
|
@ -1,7 +1,7 @@
|
||||||
# Prometheus Go client library
|
# Prometheus Go client library
|
||||||
|
|
||||||
[![CircleCI](https://circleci.com/gh/prometheus/client_golang/tree/main.svg?style=svg)](https://circleci.com/gh/prometheus/client_golang/tree/main)
|
[![CI](https://github.com/prometheus/client_golang/actions/workflows/ci.yml/badge.svg)](https://github.com/prometheus/client_golang/actions/workflows/ci.yml)
|
||||||
[![Go Report Card](https://goreportcard.com/badge/github.com/prometheus/client_golang)](https://goreportcard.com/report/github.com/prometheus/client_golang)
|
[[![Go Report Card](https://goreportcard.com/badge/github.com/prometheus/client_golang)](https://goreportcard.com/report/github.com/prometheus/client_golang)
|
||||||
[![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang.svg)](https://pkg.go.dev/github.com/prometheus/client_golang)
|
[![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang.svg)](https://pkg.go.dev/github.com/prometheus/client_golang)
|
||||||
[![Slack](https://img.shields.io/badge/join%20slack-%23prometheus--client_golang-brightgreen.svg)](https://slack.cncf.io/)
|
[![Slack](https://img.shields.io/badge/join%20slack-%23prometheus--client_golang-brightgreen.svg)](https://slack.cncf.io/)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue