-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (34 loc) · 896 Bytes
/
go.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
name: Go Tests
on:
push:
branches: [ main ]
pull_request_target:
branches: [ main ]
jobs:
test:
strategy:
matrix:
go-version: [1.16.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test GET
run: cd go/examples/get && go test
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
SHARED_KEY: ${{ secrets.SHARED_KEY }}
ORGANIZATION: ${{ secrets.ORGANIZATION }}
GITHUB_ACTION: true
- name: Test POST
run: cd go/examples/post && go test
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
SHARED_KEY: ${{ secrets.SHARED_KEY }}
ORGANIZATION: ${{ secrets.ORGANIZATION }}
GITHUB_ACTION: true