File tree Expand file tree Collapse file tree 8 files changed +1478
-1
lines changed
Expand file tree Collapse file tree 8 files changed +1478
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ go-version : ['1.23.0']
20+
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v4
24+
25+ - name : Set up Go
26+ uses : actions/setup-go@v5
27+ with :
28+ go-version : ${{ matrix.go-version }}
29+
30+ - name : Test
31+ run : go test -v -covermode=atomic -coverprofile=coverage.out ./...
32+
33+ - name : Upload coverage to Codecov
34+ uses : codecov/codecov-action@v4
35+ with :
36+ file : ./coverage.out
37+ flags : unittests
38+ name : codecov-umbrella
39+
40+ semantic-release :
41+ needs : [test]
42+ if : github.repository == 'casbin/casbin-informer-watcher' && github.event_name == 'push' && github.ref == 'refs/heads/master'
43+ runs-on : ubuntu-latest
44+ permissions :
45+ contents : write
46+ issues : write
47+ pull-requests : write
48+ steps :
49+ - name : Checkout code
50+ uses : actions/checkout@v4
51+ with :
52+ fetch-depth : 0
53+
54+ - name : Set up Node.js
55+ uses : actions/setup-node@v4
56+ with :
57+ node-version : ' lts/*'
58+
59+ - name : Install semantic-release
60+ run : |
61+ npm install -g semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/github
62+
63+ - name : Run semantic-release
64+ env :
65+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66+ run : semantic-release
Original file line number Diff line number Diff line change 1+ {
2+ "branches" : [
3+ " +([0-9])?(.{+([0-9]),x}).x" ,
4+ " master" ,
5+ {
6+ "name" : " beta" ,
7+ "prerelease" : true
8+ }
9+ ],
10+ "plugins" : [
11+ " @semantic-release/commit-analyzer" ,
12+ " @semantic-release/release-notes-generator" ,
13+ " @semantic-release/changelog" ,
14+ [
15+ " @semantic-release/git" ,
16+ {
17+ "assets" : [" CHANGELOG.md" ]
18+ }
19+ ],
20+ " @semantic-release/github"
21+ ]
22+ }
You can’t perform that action at this time.
0 commit comments