From 1ecc886c4452850bb63ec7948bf9267b36f1e7d3 Mon Sep 17 00:00:00 2001 From: Marko Date: Tue, 19 May 2020 14:08:10 +0200 Subject: [PATCH] ci: add paths ## Description by adding paths the ci job wont run if the files aren't touched. this is a change from before where they would run to see if there were changes Closes: #XXX --- .github/workflows/lint.yaml | 13 ++++++++++++- .github/workflows/proto.yml | 19 +++++++++---------- README.md | 8 ++++---- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 37f702ef6..cf983f4cc 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,14 +1,25 @@ name: Lint -on: [pull_request] +on: + pull_request: + push: + branches: + - master jobs: golangci: name: golangci-lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: technote-space/get-diff-action@v1 + with: + SUFFIX_FILTER: | + .go + .mod + .sum - uses: golangci/golangci-lint-action@master with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: v1.27 args: --timeout 10m github-token: ${{ secrets.github_token }} + if: "env.GIT_DIFF != ''" diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml index 3add52404..f971de7f7 100644 --- a/.github/workflows/proto.yml +++ b/.github/workflows/proto.yml @@ -1,19 +1,18 @@ name: Proto check -on: [pull_request] +on: + pull_request: + paths: + - "**.proto" jobs: - proto-checks: + proto-lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: technote-space/get-diff-action@v1 - id: git_diff - with: - SUFFIX_FILTER: .proto - SET_ENV_NAME_INSERTIONS: 1 - SET_ENV_NAME_LINES: 1 - name: lint run: make proto-lint - if: "env.GIT_DIFF != ''" + proto-breakage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master - name: check-breakage run: make proto-check-breaking-ci - if: "env.GIT_DIFF != ''" diff --git a/README.md b/README.md index 3eac3fd7c..7a37e5a7f 100644 --- a/README.md +++ b/README.md @@ -7,15 +7,15 @@ Or [Blockchain](), for short. [![version](https://img.shields.io/github/tag/tendermint/tendermint.svg)](https://github.com/tendermint/tendermint/releases/latest) -[![API Reference](https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667)](https://godoc.org/github.com/tendermint/tendermint) +[![API Reference](https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667)](https://pkg.go.dev/github.com/tendermint/tendermint) [![Go version](https://img.shields.io/badge/go-1.13-blue.svg)](https://github.com/moovweb/gvm) [![Discord chat](https://img.shields.io/discord/669268347736686612.svg)](https://discord.gg/AzefAFd) [![license](https://img.shields.io/github/license/tendermint/tendermint.svg)](https://github.com/tendermint/tendermint/blob/master/LICENSE) [![](https://tokei.rs/b1/github/tendermint/tendermint?category=lines)](https://github.com/tendermint/tendermint) -| Branch | Tests | Coverage | -| ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -| master | [![CircleCI](https://circleci.com/gh/tendermint/tendermint/tree/master.svg?style=shield)](https://circleci.com/gh/tendermint/tendermint/tree/master)
![Tests](https://github.com/tendermint/tendermint/workflows/Tests/badge.svg?branch=master) | [![codecov](https://codecov.io/gh/tendermint/tendermint/branch/master/graph/badge.svg)](https://codecov.io/gh/tendermint/tendermint) | +| Branch | Tests | Coverage | Linting | +| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- | +| master | [![CircleCI](https://circleci.com/gh/tendermint/tendermint/tree/master.svg?style=shield)](https://circleci.com/gh/tendermint/tendermint/tree/master)
![Tests](https://github.com/tendermint/tendermint/workflows/Tests/badge.svg?branch=master) | [![codecov](https://codecov.io/gh/tendermint/tendermint/branch/master/graph/badge.svg)](https://codecov.io/gh/tendermint/tendermint) | ![Lint](https://github.com/tendermint/tendermint/workflows/Lint/badge.svg) | Tendermint Core is Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine - written in any programming language - and securely replicates it on many machines.