Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Obliterate & revive integration tests (fixes #8071) #9266

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft
15 changes: 14 additions & 1 deletion .github/workflows/build-syncthing.yaml
Expand Up @@ -62,6 +62,8 @@ jobs:
git config --global core.eol lf

- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-go@v5
with:
Expand All @@ -77,7 +79,7 @@ jobs:
run: |
go install calmh.dev/go-test-json-to-loki@latest

- name: Test
- name: Test (unit)
run: |
go version
go run build.go test | go-test-json-to-loki
Expand All @@ -88,6 +90,17 @@ jobs:
LOKI_PASSWORD: ${{ secrets.LOKI_PASSWORD }}
LOKI_LABELS: "go=${{ matrix.go }},runner=${{ matrix.runner }},repo=${{ github.repository }},ref=${{ github.ref }}"

- name: Test (integration)
run: |
cd test
go test | go-test-json-to-loki
env:
GOFLAGS: "-json"
LOKI_URL: ${{ vars.LOKI_URL }}
LOKI_USER: ${{ vars.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
#
Expand Down
15 changes: 0 additions & 15 deletions lib/rc/debug.go

This file was deleted.