-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI job: build, test and self-evaluate test results
- Loading branch information
Michal Dorner
committed
Nov 17, 2020
1 parent
e97dbdd
commit e516b7c
Showing
5 changed files
with
84 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: 'build-test' | ||
on: | ||
pull_request: | ||
paths-ignore: [ 'README.md' ] | ||
push: | ||
paths-ignore: [ 'README.md' ] | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-test: | ||
name: 'Build & Test' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run format-check | ||
- run: npm run lint | ||
- run: npm test | ||
continue-on-error: true | ||
- name: 'Evaluate test results' | ||
uses: ./ | ||
with: | ||
name: 'JEST Tests' | ||
path: '__tests__/__results__/jest-junit.xml' | ||
reporter: 'jest-junit' | ||
- name: 'Sanity check' # re-run tests in case this action failed to detected failing test | ||
run: npm test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="2.249"> | ||
<testsuite name="__tests__\jest-junit.test.ts" errors="0" failures="0" skipped="0" timestamp="2020-11-17T21:26:30" time="2.195" tests="1"> | ||
<testcase classname="jest-junit tests" name="matches report snapshot" time="0.014"> | ||
</testcase> | ||
</testsuite> | ||
</testsuites> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters