-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from roidelapluie/rel080
Update build to github action & release 0.8.0
- Loading branch information
Showing
33 changed files
with
207 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,33 @@ | ||
--- | ||
# Prometheus has switched to GitHub action. | ||
# Circle CI is not disabled repository-wise so that previous pull requests | ||
# continue working. | ||
# This file does not generate any CircleCI workflow. | ||
|
||
version: 2.1 | ||
|
||
orbs: | ||
go: circleci/[email protected] | ||
executors: | ||
golang: | ||
docker: | ||
- image: busybox | ||
|
||
jobs: | ||
test: | ||
parameters: | ||
go_version: | ||
type: string | ||
use_gomod_cache: | ||
type: boolean | ||
default: true | ||
docker: | ||
- image: cimg/go:<< parameters.go_version >> | ||
noopjob: | ||
executor: golang | ||
|
||
steps: | ||
- checkout | ||
- when: | ||
condition: << parameters.use_gomod_cache >> | ||
steps: | ||
- go/load-cache: | ||
key: v1-go<< parameters.go_version >> | ||
- run: make test | ||
- when: | ||
condition: << parameters.use_gomod_cache >> | ||
steps: | ||
- go/save-cache: | ||
key: v1-go<< parameters.go_version >> | ||
- store_test_results: | ||
path: test-results | ||
- run: | ||
command: "true" | ||
|
||
workflows: | ||
version: 2 | ||
tests: | ||
prometheus: | ||
jobs: | ||
# Support the last two go releases, as per https://golang.org/dl/. | ||
- test: | ||
name: go-1-17 | ||
go_version: "1.17" | ||
- test: | ||
name: go-1-18 | ||
go_version: "1.18" | ||
- test: | ||
name: go-1-19 | ||
go_version: "1.19" | ||
- noopjob | ||
triggers: | ||
- schedule: | ||
cron: "0 0 30 2 *" | ||
filters: | ||
branches: | ||
only: | ||
- main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: CI | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
push: | ||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/prometheus/golang-builder:1.19-base | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: prometheus/[email protected] | ||
- uses: ./.github/promci/actions/setup_environment | ||
- run: make test | ||
|
||
golangci: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '<1.19' | ||
- name: Lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.49.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
commas: disable | ||
comments: disable | ||
comments-indentation: disable | ||
document-start: disable | ||
indentation: | ||
spaces: consistent | ||
indent-sequences: consistent | ||
key-duplicates: | ||
ignore: | | ||
config/testdata/section_key_dup.bad.yml | ||
line-length: disable | ||
truthy: | ||
ignore: | | ||
.github/workflows/codeql-analysis.yml | ||
.github/workflows/funcbench.yml | ||
.github/workflows/fuzzing.yml | ||
.github/workflows/prombench.yml | ||
.github/workflows/golangci-lint.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tls_server_config : | ||
cert_file : "server.crt" | ||
key_file : "server.key" | ||
client_ca_file : "somefile" | ||
tls_server_config: | ||
cert_file: "server.crt" | ||
key_file: "server.key" | ||
client_ca_file: "somefile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tls_server_config : | ||
cert_file : "server.crt" | ||
key_file : "server.key" | ||
client_auth_type : "RequireAndVerifyClientCert" | ||
tls_server_config: | ||
cert_file: "server.crt" | ||
key_file: "server.key" | ||
client_auth_type: "RequireAndVerifyClientCert" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
tls_server_config : | ||
cert_file : "server.crt" | ||
key_file : "server.key" | ||
tls_server_config: | ||
cert_file: "server.crt" | ||
key_file: "server.key" | ||
basic_auth_users: | ||
john: doe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
tls_server_config : | ||
tls_server_config: | ||
cert_filse: "server.crt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tls_server_config : | ||
cert_file : "server.crt" | ||
key_file : "server.key" | ||
client_ca_file : "/dev/null" | ||
tls_server_config: | ||
cert_file: "server.crt" | ||
key_file: "server.key" | ||
client_ca_file: "/dev/null" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tls_server_config : | ||
cert_file : "server.crt" | ||
key_file : "server.key" | ||
client_auth_type : "RequireAndVerifyClientCert" | ||
tls_server_config: | ||
cert_file: "server.crt" | ||
key_file: "server.key" | ||
client_auth_type: "RequireAndVerifyClientCert" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tls_server_config : | ||
cert_file : "server.crt" | ||
key_file : "server.key" | ||
client_auth_type : "VerifyClientCertIfGiven" | ||
tls_server_config: | ||
cert_file: "server.crt" | ||
key_file: "server.key" | ||
client_auth_type: "VerifyClientCertIfGiven" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
tls_server_config : | ||
cert_file : "" | ||
key_file : "server.key" | ||
tls_server_config: | ||
cert_file: "" | ||
key_file: "server.key" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
tls_server_config : | ||
cert_file : "somefile" | ||
key_file : "server.key" | ||
tls_server_config: | ||
cert_file: "somefile" | ||
key_file: "server.key" |
6 changes: 3 additions & 3 deletions
6
web/testdata/web_config_noAuth_certPath_keyPath_empty.bad.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tls_server_config : | ||
cert_file : "" | ||
key_file : "" | ||
tls_server_config: | ||
cert_file: "" | ||
key_file: "" | ||
client_auth_type: "x" |
Oops, something went wrong.