mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
CI job: build, test and self-evaluate test results
This commit is contained in:
parent
e97dbdd3e5
commit
e516b7cf46
5 changed files with 84 additions and 21 deletions
30
.github/workflows/ci.yml
vendored
Normal file
30
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue