diff options
author | Jakob Borg <jakob@kastelo.net> | 2023-07-30 11:43:10 +0200 |
---|---|---|
committer | Jakob Borg <jakob@kastelo.net> | 2023-07-30 13:40:26 +0200 |
commit | 406e3646e584c8ee7d1b9d50b69cbf30f5dc5389 (patch) | |
tree | 436d0a287534d1514d434478722bb0abf175b3a1 | |
parent | 9d21b91124d6465e77542768317e2b0a764fffa5 (diff) | |
download | syncthing-406e3646e584c8ee7d1b9d50b69cbf30f5dc5389.tar.gz syncthing-406e3646e584c8ee7d1b9d50b69cbf30f5dc5389.zip |
build: Send test logs to Grafana Loki for statistics
-rw-r--r-- | .github/workflows/build-syncthing.yaml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index d5001a289..da4a2a3a3 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -69,9 +69,19 @@ jobs: run: | go run build.go + - name: Install go-test-json-to-loki + run: | + go install calmh.dev/go-test-json-to-loki@latest + - name: Test run: | - go run build.go test + go run build.go test | go-test-json-to-loki + env: + GOFLAGS: "-json" + LOKI_URL: ${{ secrets.LOKI_URL }} + LOKI_USER: ${{ secrets.LOKI_USER }} + LOKI_PASSWORD: ${{ secrets.LOKI_PASSWORD }} + LOKI_LABELS: "go=${{ matrix.go }},runner=${{ matrix.runner }},repo=${{ github.repository }},ref=${{ github.ref }}" # # Meta checks for formatting, copyright, etc |