Browse Source

ci: migrate localnet to github actions (#4878)

## Description

This PR moves `localnet` from circleci to github actions.

Would we like to add longer lived nets?

Closes: #XXX
pull/4885/head
Marko 5 years ago
committed by GitHub
parent
commit
7866f4a995
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 24 deletions
  1. +0
    -23
      .circleci/config.yml
  2. +3
    -0
      .github/workflows/lint.yaml
  3. +26
    -0
      .github/workflows/net.yml
  4. +3
    -1
      .github/workflows/proto.yml
  5. +3
    -0
      .github/workflows/tests.yml

+ 0
- 23
.circleci/config.yml View File

@ -109,26 +109,6 @@ jobs:
- store_artifacts: - store_artifacts:
path: /tmp/logs path: /tmp/logs
localnet:
working_directory: /home/circleci/.go_workspace/src/github.com/tendermint/tendermint
machine:
image: circleci/classic:latest
environment:
GOBIN: /home/circleci/.go_workspace/bin
GOPATH: /home/circleci/.go_workspace/
GOOS: linux
GOARCH: amd64
parallelism: 1
steps:
- checkout
- run:
name: run localnet and exit on failure
command: |
set -x
docker run --rm -v "$PWD":/go/src/github.com/tendermint/tendermint -w /go/src/github.com/tendermint/tendermint golang make build-linux
make localnet-start &
./scripts/localnet-blocks-test.sh 40 5 10 localhost
test_p2p: test_p2p:
environment: environment:
GOBIN: /home/circleci/.go_workspace/bin GOBIN: /home/circleci/.go_workspace/bin
@ -376,9 +356,6 @@ workflows:
- test_persistence: - test_persistence:
requires: requires:
- setup_dependencies - setup_dependencies
- localnet:
requires:
- setup_dependencies
- test_p2p - test_p2p
- test_p2p: - test_p2p:
name: test_p2p_ipv6 name: test_p2p_ipv6


+ 3
- 0
.github/workflows/lint.yaml View File

@ -1,4 +1,7 @@
name: Lint name: Lint
# Lint runs golangci-lint over the entire Tendermint repository
# This workflow is run on every pull request and push to master
# The `golangci` job will pass without running if no *.{go, mod, sum} files have been modified.
on: on:
pull_request: pull_request:
push: push:


+ 26
- 0
.github/workflows/net.yml View File

@ -0,0 +1,26 @@
name: Net
# Net creates a 4 node test network with docker-compose
# This workflow is run on every pull request, if a *{.go, .mod, .sum} file has been modified, and push to master and release/** branches
on:
pull_request:
paths:
- "**.go"
- "**.mod"
- "**.sum"
push:
branches:
- master
- release/**
jobs:
net-short:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 10 Blocks
run: |
set -x
docker run --rm -v "$PWD":/go/src/github.com/tendermint/tendermint -w /go/src/github.com/tendermint/tendermint golang make build-linux
make localnet-start &
./scripts/localnet-blocks-test.sh 40 5 10 localhost
# Decide if we want to run longer lived testnets

+ 3
- 1
.github/workflows/proto.yml View File

@ -1,4 +1,6 @@
name: Proto check
name: Protobuf
# Protobuf runs buf (https://buf.build/) lint and check-breakage
# This workflow is only run when a .proto file has been modified
on: on:
pull_request: pull_request:
paths: paths:


+ 3
- 0
.github/workflows/tests.yml View File

@ -1,4 +1,7 @@
name: Tests name: Tests
# Tests runs different tests (test_abci_apps, test_abci_cli, test_apps)
# This workflow runs on every push to master or release branch and every pull requests
# All jobs will pass without running if no *{.go, .mod, .sum} files have been modified
on: on:
pull_request: pull_request:
push: push:


Loading…
Cancel
Save