-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.17 KB
/
pr_logger.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
name: Check
on:
pull_request:
paths:
- "logger/**"
jobs:
logger:
name: Logger
runs-on: ubuntu-latest
container: golang:1.17
timeout-minutes: 5
services:
db:
image: influxdb:2.3.0
env:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: root
DOCKER_INFLUXDB_INIT_PASSWORD: password
DOCKER_INFLUXDB_INIT_ORG: teknologi
DOCKER_INFLUXDB_INIT_BUCKET: log
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: iKPpruHfaXygrwSV
ports:
- 8086:8086
options: >-
--health-cmd "influx ping"
--health-interval 30s
--health-timeout 10s
--health-retries 5
--health-start-period 30s
defaults:
run:
working-directory: ./logger
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build test
run: go build .
- name: Run test
run: go test -v -race -coverprofile=coverage.out -covermode=atomic
env:
ACCESS_TOKEN: testing
INFLUX_URL: http://db:8086/
INFLUX_ORG: teknologi
INFLUX_TOKEN: iKPpruHfaXygrwSV