forked from gjbae1212/fluent-bit-pubsub
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 792 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
name: go-ci
on: push
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
TOPIC_NAME: ${{ secrets.TOPIC_NAME }}
JWT_PATH: './jwt.json'
_JWT: ${{ secrets._JWT }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go
- name: Check out
uses: actions/checkout@v2
- name: Cache
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get jwt file
run: echo $_JWT > jwt.json
- name: Run unit test
run: bash local.sh test
env:
GO111MODULE: 'on'
- name: CODECOV
run: bash local.sh codecov