Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build to github action & release 0.8.0
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
- Loading branch information
1 parent
bca43f1
commit a137c43
Showing
6 changed files
with
69 additions
and
74 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/go@1.7.1 | ||
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/promci@v0.0.2 | ||
- uses: ./.github/promci/actions/setup_environment | ||
- run: make | ||
|
||
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/golangci-lint-action@v3.2.0 | ||
with: | ||
version: v1.49.0 |
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
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