From 8f68503a6d28d860fd45dc9718c2c70895967128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Tue, 10 Oct 2023 09:35:29 +0000 Subject: [PATCH] ci: run tests without workaround --- .github/workflows/main.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70fc5cc..b1910f8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: pull_request: push: paths-ignore: - - '**.md' + - "**.md" env: GO111MODULE: on @@ -21,7 +21,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: "1.21" - name: Setup cache uses: actions/cache@v3 @@ -40,19 +40,7 @@ jobs: run: ./bin/tldr --update - name: Run tests with coverage report - run: | - # Uncomment next line after fox tests - # make test - - # and remove lines bellow after fixing tests - echo "" > coverage.txt - for d in $(go list ./... | grep -v vendor); do - go test -race -coverprofile=profile.out -covermode=atomic -skip "TestRender|TestWrite|TestMarkdown" $d - if [ -f profile.out ]; then - cat profile.out >> coverage.txt - rm profile.out - fi - done + run: make test - name: Upload coverage to Codecov if: success()