Skip to content

Commit

Permalink
ci: run tests without workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mstruebing committed Oct 10, 2023
1 parent c67a50b commit 8f68503
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
paths-ignore:
- '**.md'
- "**.md"

env:
GO111MODULE: on
Expand All @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 8f68503

Please sign in to comment.