mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Artifacts via public API are not available before whole workflow is finished. Therefore it's not possible to execute test this way
35 lines
765 B
YAML
35 lines
765 B
YAML
name: 'CI'
|
|
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
|
|
|
|
- name: Upload test results
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: test-results
|
|
path: __tests__/__results__/*.xml
|
|
|
|
- name: Create test report
|
|
uses: ./
|
|
if: success() || failure()
|
|
with:
|
|
name: JEST Tests
|
|
path: __tests__/__results__/*.xml
|
|
reporter: jest-junit
|