-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (39 loc) · 1.24 KB
/
code_climate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Coverage with CodeClimate
on: [push, pull_request]
jobs:
codeclimate-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.0'
- run: go mod download && go build
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: db6b1a22f55faced27e0fc546607ee9c478b0e93f54062114e02ee89a9939a2e
with:
prefix: ${{ github.event.repository.name }}
coverageCommand: go test -v ./... -coverprofile c.out
coverageLocations:
"${{github.workspace}}/c.out:gocov"
crreate-release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false