Skip to content

build(deps): bump ejs from 3.1.9 to 3.1.10 in /packages/i18nify-react/examples/basic-react-app #557

build(deps): bump ejs from 3.1.9 to 3.1.10 in /packages/i18nify-react/examples/basic-react-app

build(deps): bump ejs from 3.1.9 to 3.1.10 in /packages/i18nify-react/examples/basic-react-app #557

name: (i18nify-js) CodeCov Code Coverage PR Analysis
on:
pull_request:
jobs:
# JOB to run change detection
check-if-i18nify-js:
runs-on: ubuntu-latest
outputs:
modified: ${{ steps.filter.outputs.src }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- 'packages/i18nify-js/**'
coverage:
name: CodeCov analysis on coverage
runs-on: ubuntu-latest
needs: check-if-i18nify-js
if: |
needs.check-if-i18nify-js.outputs.modified == 'true' && !(github.head_ref == 'changeset-release/master' && github.actor == 'rzpcibot') &&
!contains(github.event.head_commit.message, '[skip ci]')
steps:
- name: Checkout Codebase
uses: actions/checkout@v3
- name: Setup Node v20
uses: actions/setup-node@v3
with:
node-version: 20.3.1
- name: Setup Cache & Install Dependencies
uses: bahmutov/[email protected]
with:
install-command: yarn --frozen-lockfile
- name: Run Tests
working-directory: packages/i18nify-js
run: yarn test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
verbose: true
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Unit Test Results
path: src/coverage/**/*.xml
publish-test-results:
name: 'Publish Unit Tests Results'
needs: coverage
runs-on: ubuntu-latest
# Only run if prereq jobs completed - successfully or not
if: (success() || failure()) && ${{ needs.check-if-i18nify-js.outputs.modified == 'true' }}
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: Publish Unit Test Results
uses: docker://ghcr.io/enricomi/publish-unit-test-result-action:v1.6
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files: artifacts/**/*.xml