Skip to content

Commit

Permalink
fix: dateformat migrated to esm (#234)
Browse files Browse the repository at this point in the history
* fix: esm package migration

* ci: use continue-on-error for coveralls

* chore: use dateformat ^4.6.3

* ci: update coveralls handling
  • Loading branch information
climba03003 committed Sep 21, 2021
1 parent e5e3f54 commit 7e802b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}
outputs:
COVERALLS: ${{ steps.coveralls-trigger.outputs.COVERALLS_TRIGGER }}
strategy:
matrix:
node-version: [10, 12, 14, 16]
Expand All @@ -39,15 +41,26 @@ jobs:
run: npm run ci

- name: Coveralls Parallel
id: coveralls-parallel
uses: coverallsapp/github-action@1.1.3
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: run-${{ matrix.node-version }}-${{ matrix.os }}

- name: Should Trigger coverallsapp/github-action@master
id: coveralls-trigger
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#steps-context
# when continue-on-error failed, outcome is failure and conclusion is success
if: steps.coveralls-parallel.conclusion == 'success' && steps.coveralls-parallel.outcome != 'success'
run: |
echo "::set-output name=COVERALLS_TRIGGER::failure"
coverage:
needs: build
runs-on: ubuntu-latest
if: needs.test.outputs.COVERALLS != 'failure'
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@1.1.3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"args": "^5.0.1",
"colorette": "^2.0.0",
"dateformat": "^4.5.1",
"dateformat": "^4.6.3",
"fast-safe-stringify": "^2.0.7",
"joycon": "^3.0.0",
"pino-abstract-transport": "^0.3.0",
Expand Down

0 comments on commit 7e802b4

Please sign in to comment.