From 4f5dc3f881c1fd0f9fcce800b0f1d5a800aa04ad Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Fri, 17 Dec 2021 15:37:57 +0000 Subject: [PATCH] hack --- .github/workflows/ci.yaml | 44 ---------------------------------- .github/workflows/dummy.yaml | 46 +++++++++++++++++++++++++++++------- 2 files changed, 38 insertions(+), 52 deletions(-) delete mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 70707a0a..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: CI -on: - pull_request: - types: [opened, reopened] - push: - branches: ["**"] - tags: - - "v[0-9]+.[0-9]+.[0-9]+" - - "v[0-9]+.[0-9]+.[0-9]+-*" - -jobs: - test: - name: Run tests - runs-on: ubuntu-20.04 - services: - consul: - image: consul:1.9.13 # v0.6.4 - ports: [ "8500:8500" ] - env: - CONSUL_LOCAL_CONFIG: '{"session_ttl_min": "1s"}' - CONSUL_BIND_INTERFACE: eth0 - etcd: - image: quay.io/coreos/etcd:v3.0.17 # v3.5.1 - ports: [ "4001:4001" ] - env: - ETCD_ADVERTISE_CLIENT_URLS: http://127.0.0.1:4001 - ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:4001 - zookeeper: - image: zookeeper:3.7.0 - ports: [ "2181:2181" ] - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: '^1.17.5' - - run: cd tools && go install github.com/GeertJohan/fgt github.com/mattn/goveralls golang.org/x/lint golang.org/x/tools/cmd/cover - - run: script/validate-gofmt - - run: go vet ./... - # - run: fgt /home/runner/go/bin/lint ./... - - run: go test -v -race ./... - env: - LIBKV_TEST_SHORT_TIMEOUT: 10s - - run: script/coverage - - run: goveralls -service=travis-ci -coverprofile=goverage.report diff --git a/.github/workflows/dummy.yaml b/.github/workflows/dummy.yaml index 5a162715..e4c05bef 100644 --- a/.github/workflows/dummy.yaml +++ b/.github/workflows/dummy.yaml @@ -1,14 +1,44 @@ name: dummy - on: - workflow_dispatch: - push: pull_request: + types: [opened, reopened] + push: + branches: ["**"] + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + - "v[0-9]+.[0-9]+.[0-9]+-*" jobs: - dummy: - runs-on: ubuntu-latest + test: + name: Run tests + runs-on: ubuntu-20.04 + services: + consul: + image: consul:1.9.13 # v0.6.4 + ports: [ "8500:8500" ] + env: + CONSUL_LOCAL_CONFIG: '{"session_ttl_min": "1s"}' + CONSUL_BIND_INTERFACE: eth0 + etcd: + image: quay.io/coreos/etcd:v3.0.17 # v3.5.1 + ports: [ "4001:4001" ] + env: + ETCD_ADVERTISE_CLIENT_URLS: http://127.0.0.1:4001 + ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:4001 + zookeeper: + image: zookeeper:3.7.0 + ports: [ "2181:2181" ] steps: - - - name: Checkout - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '^1.17.5' + - run: cd tools && go install github.com/GeertJohan/fgt github.com/mattn/goveralls golang.org/x/lint golang.org/x/tools/cmd/cover + - run: script/validate-gofmt + - run: go vet ./... + # - run: fgt /home/runner/go/bin/lint ./... + - run: go test -v -race ./... + env: + LIBKV_TEST_SHORT_TIMEOUT: 10s + - run: script/coverage + - run: goveralls -service=travis-ci -coverprofile=goverage.report