Commit graph

46 commits

Author SHA1 Message Date
Johannes Spangenberg
f763877804 Fix problematic retransmission of authentication token
The retransmission of the authentication token to the server providing
the artifact caused the following errors when using Artifacts v4:

  HTTPError: Response code 400 (Authentication information is not given
  in the correct format. Check the value of Authorization header.)

It looks like the service serving the artifacts does not expect the
authentication header, and therefore complaines about inproper use of
the authentication header. Delegating the redirect-handling to the `got`
library fixes the issue according to my tsts.
2024-05-04 13:43:51 +02:00
Detlev Casanova
daece3018b Avoid split on undefined 2023-08-09 15:24:41 -04:00
Dharmendra Soni
3cca7492d0
Merge pull request #200 from petrdvorak/main
Fix #199: Use  instead of ✔️ for better cross platform look
2022-11-03 04:28:34 +05:30
Michal Dorner
e54753f811
Update to node16 + recent versions of core and exec packages 2022-10-13 22:05:31 +02:00
Petr Dvořák
ba1a54f2f4
Update markdown-utils.ts 2022-10-05 22:01:58 +02:00
Petr Dvořák
ae902f665e
Fix #199: Use instead of ✔️ for better cross platform look
- Use the  for passed tests
- Use the  for skipped tests
2022-10-05 22:01:28 +02:00
Michal Dorner
aba461c3a7
Downgrade got package to v11.x
got@v12.x has a dependency on @sindresorhus/is@v5.x and it uses optional chaining operator "?.".  
Probably due to issue https://github.com/vercel/ncc/issues/873 this syntax got into our dist/index.js. For some unknown reason it results in error when action is executed in GitHub runner despite the node version is 16.17.
2022-08-23 23:10:34 +02:00
Michal Dorner
b595428c55
Update multiple packages + fix eslint resolver issue 2022-08-20 00:06:56 +02:00
Michal Dorner
57e5862411
Update multiple packages and configs 2022-08-19 23:37:14 +02:00
Michal Dorner
8848447e3f
Fix tests on non us-EN local env (#185)
* Fix tests on non us-EN local env

Different locale might result in different alphabetical order of tests in report. Tests using snapshot comparison then fails

* Fix code style
2022-08-19 21:53:20 +02:00
Michal Dorner
ee126813a2
Merge branch 'dev' into mocha-json 2021-04-01 00:05:41 +02:00
Michal Dorner
690ec77880
New report rendering with code blocks instead of tables
Previously we listed tests using markdown tables. Each test group had it's own table and textual preface saying how many tests were executed in what time.
This was completely reworked - now tests are listed inside code block. Grouping is achieved using simple indentation. Duration of individual tests is no longer shown - it produced too much "noise" in the report. Pass/Fail check-mark was also moved before name of test suite.
Behavior of "listTests" option was also changed - now if set to failed, it will list all tests, but only if suite is failed. Otherwise test listing is completely omitted.
Last change affects report trimming - if report is still too big after "listTests" is set to "failed" - it will trim report to fit max size and add informational message at the end.
2021-03-31 21:49:53 +02:00
Michal Dorner
96df6db61e
Round test duration to whole seconds if it's more then 1s
Report will contain less accurate information but it will be easier to read.
2021-03-31 21:33:21 +02:00
Michal Dorner
3a0bb833dc
#83 - Use non-capturing optional group, add tests and update dist 2021-03-23 21:39:47 +01:00
Shannon Deminick
c0e7f7f7dc
Fixes #83
This regex change should match the dotnet format with or without milliseconds
2021-03-23 11:09:02 +11:00
Michal Dorner
3768e4e756
Merge branch 'main' into mocha-json 2021-03-08 21:00:14 +01:00
Michal Dorner
cf4814e8de
Do not throw error when workflow_run has been cancelled
It's common to cancel all jobs/workflows after first error. There could still be test results user wants to see in a report
2021-03-07 11:25:42 +01:00
Michal Dorner
073a4b9a03
Add info log when fetching git tree 2021-03-07 09:52:57 +01:00
Michal Dorner
953bdcc20a
Reduce number of API calls to get list of files tracked by GitHub 2021-03-07 09:33:58 +01:00
Michal Dorner
9b675bd55f
Add support for mocha-json 2021-02-23 22:39:35 +01:00
Michal Dorner
4e1eb73eb5
Fail the action if triggering workflow run has been cancelled 2021-02-20 14:43:46 +01:00
Michal Dorner
93c3964547
Misc fixes + test sleep before artifact-test 2021-02-17 21:20:40 +01:00
Michal Dorner
96237b3119
Improve logging & fix wrong SHA used 2021-02-17 08:28:52 +01:00
Michal Dorner
e356ffe9d0
Removed progress percentage as there is no way to deduce content length 2021-02-15 21:06:38 +01:00
Michal Dorner
1ae86a176d
artifact-provider: improve logging 2021-02-15 20:46:28 +01:00
Michal Dorner
da9cc2c0d9
Show artifact download progress 2021-02-15 20:29:51 +01:00
Michal Dorner
8819b4b3d4
Pass auth token to got request 2021-02-15 17:00:25 +01:00
Michal Dorner
52024f70c3
Use got to fetch artifact URL
See issue: https://github.com/octokit/request.js/issues/240
2021-02-15 16:49:52 +01:00
Michal Dorner
1f5bb98685
Fix artifact download 2021-02-15 16:28:28 +01:00
Michal Dorner
075144b122
Add artifact input to action.yml + improve logging 2021-02-15 15:54:15 +01:00
Michal Dorner
3510d9ac27
Add support for loading test results from artifacts 2021-02-15 15:18:55 +01:00
Michal Dorner
60b35d601a
Refactoring & cleanup of whole codebase
Improves report summary and annotations
2021-01-31 20:48:22 +01:00
Michal Dorner
07a0223ee3
Update dist/index.js 2021-01-29 01:04:01 +01:00
Michal Dorner
c75a9dd8c8
Add table with reports results if there are more test runs 2021-01-29 00:51:08 +01:00
Michal Dorner
e3bb634029
Improve report format to save space 2021-01-25 14:21:44 +01:00
Michal Dorner
3744805866
Add list-suites and list-tests options to limit report size 2021-01-25 12:56:20 +01:00
Michal Dorner
7af0073fa3
Enforce Check Run API limits 2021-01-25 10:23:49 +01:00
Michal Dorner
40b5f476c7
remove auto conversion of XML attributes based on value 2021-01-24 21:05:34 +01:00
Michal Dorner
656ede0390
Support path pattern to match test report files 2021-01-16 21:07:12 +01:00
Michal Dorner
760c090915
Fix EOL issues - remove all \r from annotation message 2021-01-14 22:34:00 +01:00
Michal Dorner
b28f91cc2e
Add dotnet-trx support (no annotations yet) 2021-01-11 17:48:33 +01:00
Michal Dorner
bff3069f5c
Remove 'Details' column from Test case report
Stack traces doesn't fit well into the table - there was not enough width for it.  Now the stack traces are included in annotations which looks much better
2020-11-29 20:07:32 +01:00
Michal Dorner
fc8cfe0f32
Create annotations where exceptions were thrown 2020-11-28 21:24:57 +01:00
Michal Dorner
95d3d1fb85
Manually create anchors for headings 2020-11-18 23:31:33 +01:00
Michal Dorner
e97dbdd3e5
Process input and create check-run 2020-11-17 22:21:16 +01:00
Michal Dorner
bc706859ad
Implements jest-junit report parsing 2020-11-12 23:34:42 +01:00