Skip to content

Commit

Permalink
ci: upload log when test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Apr 19, 2024
1 parent d8580d8 commit 7a84a08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,13 @@ jobs:
run: sudo taosadapter &

- name: test
id: test
run: |
sudo dotnet test --logger "console;verbosity=detailed" --collect:"XPlat Code Coverage" --results-directory:./testresults
timeout-minutes: 15

- uses: actions/upload-artifact@v3
if: always()
if: always() && (steps.test.outcome == 'failure' || steps.test.outcome == 'cancelled')
with:
name: ${{ runner.os }}-${{ matrix.go }}-log
path: /var/log/taos/
Expand Down

0 comments on commit 7a84a08

Please sign in to comment.