Skip to content

Commit

Permalink
fix(ui): Fix incorrect env var existence check (caraml-dev#102)
Browse files Browse the repository at this point in the history
* Fix incorrect env var existence check

* Add codecov threshold
  • Loading branch information
deadlycoconuts authored Jun 4, 2024
1 parent 5d5a1b9 commit 52ecdaa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ jobs:
name: api-test
token: ${{ secrets.CODECOV_TOKEN }}
working-directory: ./api
codecov_yml_path: ../.github/workflows/codecov-config/codecov.yml

e2e-test:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codecov-config/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage:
status:
patch:
default:
threshold: 0.03%
2 changes: 1 addition & 1 deletion ui/packages/app/src/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const getEnv = env => {
return window.env && window.env[env] ? window.env[env] : process.env[env];
return window.env && env in window.env ? window.env[env] : process.env[env];
};

export const sentryConfig = {
Expand Down

0 comments on commit 52ecdaa

Please sign in to comment.