Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/.github/workflows/go_test.yaml

40 lines
753 B

name: go test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: go test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.16']
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go
- uses: actions/checkout@v2
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.32
args: --timeout=5m
- name: Test
run: go test -v -coverprofile=.coverprofile .
- name: Report coveralls.io
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: .coverprofile
flag-name: Go-${{ matrix.go }}