Skip to content

Commit

Permalink
ci: improve setting ENV in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Sen Ng (motss) <wes.ngrongsen@gmail.com>
  • Loading branch information
motss committed Mar 9, 2022
1 parent 97a058d commit 46a4848
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-taxis-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-datepicker": patch
---

ci: improve setting ENV in CI
5 changes: 5 additions & 0 deletions .changeset/funny-camels-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-datepicker": patch
---

ci: trying to improve CI
5 changes: 5 additions & 0 deletions .changeset/fuzzy-buckets-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-datepicker": patch
---

chore: update dependencies
5 changes: 5 additions & 0 deletions .changeset/honest-eels-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-datepicker": patch
---

fix: fix stylings not using the correct CSS variables
7 changes: 3 additions & 4 deletions .github/workflows/ci-helpers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defaults:

env:
CI_SKIP: false
COVERAGE: false
GITHUB_COMMIT_MESSAGE: ''
IS_UBUNTU: false
NODE_VERSION: v0.0.0
Expand Down Expand Up @@ -99,16 +100,14 @@ jobs:
- name: Test
if: env.CI_SKIP == 'false' && env.IS_UBUNTU == 'false'
run: |
export TEST_HELPERS=true
npm run wtr
- name: Test with coverage
if: env.CI_SKIP == 'false' && env.IS_UBUNTU != 'false'
run: |
printf "%s" "$TEST_HELPERS"
export COVERAGE=true
export TEST_HELPERS=true
npm run wtr
env:
COVERAGE: true

- name: Upload coverage to codecov
if: env.CI_SKIP == 'false' && env.IS_UBUNTU != 'false' && success()
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defaults:

env:
CI_SKIP: false
COVERAGE: false
GITHUB_COMMIT_MESSAGE: ''
IS_UBUNTU: false
NODE_VERSION: v0.0.0
Expand Down Expand Up @@ -111,8 +112,9 @@ jobs:
- name: Test with coverage
if: env.CI_SKIP == 'false' && env.IS_UBUNTU != 'false'
run: |
export COVERAGE=true
npm run wtr
env:
COVERAGE: true

- name: Upload coverage to codecov
if: env.CI_SKIP == 'false' && env.IS_UBUNTU != 'false' && success()
Expand Down

0 comments on commit 46a4848

Please sign in to comment.