Skip to content

Commit

Permalink
hack
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Dec 17, 2021
1 parent 96ceae9 commit c5cfdd7
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 53 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/ci.yaml

This file was deleted.

48 changes: 39 additions & 9 deletions .github/workflows/dummy.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,44 @@
name: dummy

name: CI
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

0 comments on commit c5cfdd7

Please sign in to comment.