File tree Expand file tree Collapse file tree 3 files changed +72
-1
lines changed
Expand file tree Collapse file tree 3 files changed +72
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Go
2+ on : [push,pull_request]
3+
4+ jobs :
5+
6+ test :
7+
8+ strategy :
9+ matrix :
10+ go : [1.14,1.15,1.16]
11+
12+ runs-on : ubuntu-latest
13+ services :
14+ casbin :
15+ image : quay.io/coreos/etcd
16+ ports :
17+ - 2379:2379
18+ - 2380:2380
19+ env :
20+ ETCD_LISTEN_CLIENT_URLS : http://0.0.0.0:2379
21+ ETCD_ADVERTISE_CLIENT_URLS : http://0.0.0.0:2379
22+ steps :
23+ - name : Set up Go
24+ uses : actions/setup-go@v2
25+ with :
26+ go-version : ${{ matrix.go }}
27+
28+ - uses : actions/checkout@v2
29+ - name : Run Unit tests
30+ run : go test -v -coverprofile=profile.cov ./...
31+
32+ - name : Install goveralls
33+ env :
34+ GO111MODULE : off
35+ run : go get github.com/mattn/goveralls
36+
37+ - name : Send coverage
38+ env :
39+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ run : goveralls -coverprofile=profile.cov -service=github
41+
42+ semantic-release :
43+ needs : [test]
44+ runs-on : ubuntu-latest
45+ steps :
46+
47+ - uses : actions/checkout@v2
48+
49+ - name : Run semantic-release
50+ if : github.repository == 'casbin/etcd-watcher' && github.event_name == 'push'
51+ run : |
52+ npm install --save-dev semantic-release@17.2.4
53+ npx semantic-release
54+ env :
55+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ {
2+ "debug" : true ,
3+ "branches" : [
4+ " +([0-9])?(.{+([0-9]),x}).x" ,
5+ " master" ,
6+ {
7+ "name" : " beta" ,
8+ "prerelease" : true
9+ }
10+ ],
11+ "plugins" : [
12+ " @semantic-release/commit-analyzer" ,
13+ " @semantic-release/release-notes-generator" ,
14+ " @semantic-release/github"
15+ ]
16+ }
Original file line number Diff line number Diff line change 1- Etcd Watcher [ ![ Build Status ] ( https://travis-ci.org /casbin/etcd-watcher. svg?branch=master )] ( https://travis-ci.org /casbin/etcd-watcher ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/casbin/etcd-watcher/badge.svg?branch=master )] ( https://coveralls.io/github/casbin/etcd-watcher?branch=master ) [ ![ Godoc] ( https://godoc.org/github.com/casbin/etcd-watcher?status.svg )] ( https://godoc.org/github.com/casbin/etcd-watcher )
1+ Etcd Watcher [ ![ Go ] ( https://github.com /casbin/etcd-watcher/actions/workflows/test.yml/badge. svg )] ( https://github.com /casbin/etcd-watcher/actions/workflows/test.yml ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/casbin/etcd-watcher/badge.svg?branch=master )] ( https://coveralls.io/github/casbin/etcd-watcher?branch=master ) [ ![ Godoc] ( https://godoc.org/github.com/casbin/etcd-watcher?status.svg )] ( https://godoc.org/github.com/casbin/etcd-watcher )
22====
33
44Etcd Watcher is the [ Etcd] ( https://github.com/coreos/etcd ) watcher for [ Casbin] ( https://github.com/casbin/casbin ) . With this library, Casbin can synchronize the policy with the database in multiple enforcer instances.
You can’t perform that action at this time.
0 commit comments