-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: move jest to tap * test: fix error test
- Loading branch information
1 parent
36b301c
commit 8bd42af
Showing
17 changed files
with
421 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,15 @@ env: | |
COVERALLS: 0 | ||
|
||
jobs: | ||
build: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
outputs: | ||
COVERALLS: ${{ steps.coveralls-trigger.outputs.COVERALLS_TRIGGER }} | ||
|
||
strategy: | ||
matrix: | ||
# Maintenance and active LTS | ||
node-version: [12, 14, 16] | ||
node-version: [10, 12, 14, 16] | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
name: Node ${{ matrix.node-version }} | ||
|
||
|
@@ -28,7 +31,7 @@ jobs: | |
|
||
- name: Use Node.js | ||
id: setup_node | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
|
@@ -50,19 +53,26 @@ jobs: | |
run: npm run coverage | ||
|
||
- name: Coveralls Parallel | ||
id: coveralls-parallel | ||
continue-on-error: true | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel: true | ||
flag-name: run-${{ matrix.node-version }}-${{ matrix.os }} | ||
|
||
- name: Typescript | ||
id: typescript_test | ||
run: npm run typescript --if-present | ||
- name: Should Trigger coverallsapp/[email protected] | ||
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 | ||
needs: test | ||
runs-on: ubuntu-latest | ||
if: needs.test.outputs.COVERALLS != 'failure' | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/[email protected] | ||
|
@@ -71,10 +81,10 @@ jobs: | |
parallel-finished: true | ||
|
||
automerge: | ||
needs: build | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: fastify/github-action-merge-dependabot@v2.4.0 | ||
- uses: fastify/github-action-merge-dependabot@v2.5.0 | ||
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
pnpm: | ||
|
@@ -12,14 +13,14 @@ jobs: | |
strategy: | ||
matrix: | ||
# Maintenance and active LTS | ||
node-version: [12, 14, 16] | ||
node-version: [10, 12, 14, 16] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
id: setup_node | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
@@ -39,15 +40,15 @@ jobs: | |
strategy: | ||
matrix: | ||
# Maintenance and active LTS | ||
node-version: [12, 14, 16] | ||
node-version: [10, 12, 14, 16] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
id: setup_node | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ts: true | ||
jsx: false | ||
flow: false | ||
check-coverage: true | ||
coverage: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.