mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
add github actions (#160)
This commit is contained in:
parent
603a79b357
commit
b0090dbd86
40
.github/workflows/main.yml
vendored
Normal file
40
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: main
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v1
|
||||||
|
with:
|
||||||
|
go-version: 1.12
|
||||||
|
id: go
|
||||||
|
- name: Code checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Dependencies
|
||||||
|
env:
|
||||||
|
GO111MODULE: off
|
||||||
|
run: |
|
||||||
|
go get -v golang.org/x/lint/golint
|
||||||
|
go get -u github.com/kisielk/errcheck
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
|
run: |
|
||||||
|
export PATH=$PATH:$(go env GOPATH)/bin # temporary fix. See https://github.com/actions/setup-go/issues/14
|
||||||
|
make check-all
|
||||||
|
git diff --exit-code
|
||||||
|
make test-full
|
||||||
|
make test-pure
|
||||||
|
make victoria-metrics
|
||||||
|
make victoria-metrics-pure
|
||||||
|
make victoria-metrics-arm
|
||||||
|
make victoria-metrics-arm64
|
||||||
|
- name: Publish coverage
|
||||||
|
uses: codecov/codecov-action@v1.0.0
|
||||||
|
with:
|
||||||
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
|
file: ./coverage.txt
|
||||||
|
|
26
.travis.yml
26
.travis.yml
@ -1,26 +0,0 @@
|
|||||||
language: go
|
|
||||||
|
|
||||||
go:
|
|
||||||
- 1.12.x
|
|
||||||
|
|
||||||
install: make
|
|
||||||
|
|
||||||
env:
|
|
||||||
- GO111MODULE=on
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- GO111MODULE=off go get -v golang.org/x/lint/golint
|
|
||||||
- GO111MODULE=off go get -u github.com/kisielk/errcheck
|
|
||||||
|
|
||||||
script:
|
|
||||||
- make check-all
|
|
||||||
- git diff --exit-code
|
|
||||||
- make test-full
|
|
||||||
- make test-pure
|
|
||||||
- make victoria-metrics
|
|
||||||
- make victoria-metrics-pure
|
|
||||||
- make victoria-metrics-arm
|
|
||||||
- make victoria-metrics-arm64
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
|
@ -2,7 +2,7 @@
|
|||||||
[![Slack](https://img.shields.io/badge/join%20slack-%23victoriametrics-brightgreen.svg)](http://slack.victoriametrics.com/)
|
[![Slack](https://img.shields.io/badge/join%20slack-%23victoriametrics-brightgreen.svg)](http://slack.victoriametrics.com/)
|
||||||
[![GitHub license](https://img.shields.io/github/license/VictoriaMetrics/VictoriaMetrics.svg)](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/LICENSE)
|
[![GitHub license](https://img.shields.io/github/license/VictoriaMetrics/VictoriaMetrics.svg)](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/LICENSE)
|
||||||
[![Go Report](https://goreportcard.com/badge/github.com/VictoriaMetrics/VictoriaMetrics)](https://goreportcard.com/report/github.com/VictoriaMetrics/VictoriaMetrics)
|
[![Go Report](https://goreportcard.com/badge/github.com/VictoriaMetrics/VictoriaMetrics)](https://goreportcard.com/report/github.com/VictoriaMetrics/VictoriaMetrics)
|
||||||
[![Build Status](https://travis-ci.org/VictoriaMetrics/VictoriaMetrics.svg?branch=master)](https://travis-ci.org/VictoriaMetrics/VictoriaMetrics)
|
[![Build Status](https://github.com/VictoriaMetrics/VictoriaMetrics/workflows/main/badge.svg)](https://github.com/VictoriaMetrics/VictoriaMetrics/actions)
|
||||||
[![codecov](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics/branch/master/graph/badge.svg)](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics)
|
[![codecov](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics/branch/master/graph/badge.svg)](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics)
|
||||||
|
|
||||||
<img alt="Victoria Metrics" src="logo.png">
|
<img alt="Victoria Metrics" src="logo.png">
|
||||||
|
Loading…
Reference in New Issue
Block a user