mirror of
https://github.com/Cameri/nostream.git
synced 2025-08-08 12:11:50 +02:00
chore(ci): fail checks if intg tests fail
This commit is contained in:
10
.github/workflows/checks.yml
vendored
10
.github/workflows/checks.yml
vendored
@@ -49,12 +49,13 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: npm run test:unit
|
run: npm run test:unit
|
||||||
continue-on-error: true
|
|
||||||
- name: Run coverage for unit tests
|
- name: Run coverage for unit tests
|
||||||
run: npm run cover:unit
|
run: npm run cover:unit
|
||||||
|
if: ${{ always() }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Coveralls
|
- name: Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
|
if: ${{ always() }}
|
||||||
with:
|
with:
|
||||||
path-to-lcov: ./.coverage/unit/lcov.info
|
path-to-lcov: ./.coverage/unit/lcov.info
|
||||||
flag-name: Unit
|
flag-name: Unit
|
||||||
@@ -74,21 +75,24 @@ jobs:
|
|||||||
node-version-file: .nvmrc
|
node-version-file: .nvmrc
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
run: npm run docker:test:integration
|
run: npm run docker:test:integration
|
||||||
|
- name: Generate Cucumber report annotations
|
||||||
|
uses: deblockt/cucumber-report-annotations-action@v1.7
|
||||||
|
if: ${{ always() }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- uses: deblockt/cucumber-report-annotations-action@v1.7
|
|
||||||
with:
|
with:
|
||||||
access-token: ${{ secrets.GITHUB_TOKEN }}
|
access-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
path: .test-reports/integration/report.json
|
path: .test-reports/integration/report.json
|
||||||
- name: Run coverage for integration tests
|
- name: Run coverage for integration tests
|
||||||
run: npm run docker:cover:integration
|
run: npm run docker:cover:integration
|
||||||
continue-on-error: true
|
|
||||||
- name: Coveralls
|
- name: Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
|
if: ${{ always() }}
|
||||||
with:
|
with:
|
||||||
path-to-lcov: .coverage/integration/lcov.info
|
path-to-lcov: .coverage/integration/lcov.info
|
||||||
flag-name: Integration
|
flag-name: Integration
|
||||||
parallel: true
|
parallel: true
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
continue-on-error: true
|
||||||
post-tests:
|
post-tests:
|
||||||
name: Post Tests
|
name: Post Tests
|
||||||
needs: [test-units-and-cover, test-integrations-and-cover]
|
needs: [test-units-and-cover, test-integrations-and-cover]
|
||||||
|
Reference in New Issue
Block a user