-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (39 loc) · 986 Bytes
/
ci.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
40
41
42
43
44
45
46
47
48
name: app
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file : 'go.mod'
- name: Setup Go Task
run: go install github.com/go-task/task/v3/cmd/task@latest
- name: Setup Protoc
uses: arduino/setup-protoc@v1
- name: Run Unit Test
run: |
task download
task proto
task generate
task test
semantic-release:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run semantic-release
if: github.repository == 'OldSmokeGun/go-scaffold' && github.event_name == 'push'
run: |
npm install --save-dev semantic-release
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}