update actions #12
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
name: Integration Tests | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
integration_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Run Tests | |
working-directory: integration_tests | |
run: | | |
yarn install | |
yarn test | |
# - name: Publish Test Results | |
# uses: EnricoMi/publish-unit-test-result-action@v2 | |
# if: always() | |
# with: | |
# only-summary: 'false' | |
# list-suites: 'all' | |
# list-tests: 'all' | |
# fail-on-error: 'true' | |
# files: | | |
# integration_tests/results.json | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: Integration Tests | |
only-summary: 'false' | |
list-suites: 'all' | |
list-tests: 'failed' | |
fail-on-error: 'true' | |
reporter: 'mocha-json' | |
path: | | |
integration_tests/results.json | |