Skip to content

Commit

Permalink
ci: minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Feb 6, 2022
1 parent bd6d571 commit ea5165f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ defaults:
env:
CI_SKIP: false
GITHUB_COMMIT_MESSAGE: ''
IS_UBUNTU: false
NODE_VERSION: v0.0.0
NPM_CACHE_DIR: ~/.npm
NPM_VERSION: 0.0.0
Expand Down Expand Up @@ -63,6 +64,7 @@ jobs:
if: env.CI_SKIP == 'false'
run: |
pwd && ls -la
echo "IS_UBUNTU=${{ contains(matrix.os, 'ubuntu') }}" >> $GITHUB_ENV
echo "NODE_VERSION=$(node -v)" >> $GITHUB_ENV
echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV
echo "NPM_VERSION=$(npm -v)" >> $GITHUB_ENV
Expand Down Expand Up @@ -93,17 +95,17 @@ jobs:
npm run lint:build
- name: Test
if: env.CI_SKIP == 'false' && !contains(matrix.os, 'ubuntu')
if: env.CI_SKIP == 'false' && env.IS_UBUNTU == 'false'
run: |
npm t
- name: Test with coverage
if: env.CI_SKIP == 'false' && contains(matrix.os, 'ubuntu')
if: env.CI_SKIP == 'false' && env.IS_UBUNTU != 'false'
run: |
npm run test:coverage
- name: Upload coverage to codecov
if: env.CI_SKIP == 'false' && contains(matrix.os, 'ubuntu') && success()
if: env.CI_SKIP == 'false' && env.IS_UBUNTU != 'false' && success()
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit ea5165f

Please sign in to comment.