diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index dc1af47ac..a6100b0bf 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -24,7 +24,15 @@ jobs: shell: bash -l {0} run: | source setup/activate_serve.sh - npx jest + npm run test + + - name: Upload exact version(s) of packages used + uses: actions/upload-artifact@v4 + with: + name: versions-results + path: | + package-lock.json + ./coverage/coverage-final.json - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4 @@ -33,4 +41,4 @@ jobs: files: ./coverage/coverage-final.json flags: unit fail_ci_if_error: ${{ github.repository == 'e-mission/e-mission-phone' }} - \ No newline at end of file + diff --git a/babel.config.js b/babel.config.js index b3c97fe4c..9e4bc46af 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,4 +1,4 @@ module.exports = { - presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react'], + presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react', 'module:@react-native/babel-preset'], plugins: ['@babel/plugin-transform-flow-strip-types'], } diff --git a/codecov.yml b/codecov.yml index 125b560ef..48490ad0b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,3 +1,7 @@ +coverage: + status: + project: + default: false # disable the default status that measures entire project comment: layout: " diff, flags, files" behavior: default @@ -5,4 +9,4 @@ comment: require_base: false require_head: true hide_project_coverage: false - \ No newline at end of file +