-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: changing build/ci from travis to github, npm instead of yarn, …
…etc. (#85) * chore: changing build/ci from travis to github, npm instead of yarn, main instead of master, and dependabot config updates * chore: fix coverage publishing for github actions build; sync with master
- Loading branch information
1 parent
1c7b77f
commit 89207ea
Showing
14 changed files
with
13,166 additions
and
14,065 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
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,88 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: "Use Node.js (deliberately not using matrix)" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: v12.x | ||
|
||
- name: install dependencies | ||
run: | | ||
npm i | ||
- name: lint | ||
run: | | ||
npm run lint | ||
build_and_test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
node: [10, 12, 14] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: install dependencies | ||
run: | | ||
npm i | ||
- name: test | ||
env: | ||
CI_NODE_VERSION: ${{ matrix.node }} | ||
run: | | ||
npm run test | ||
- name: publish coverage | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
flag-name: nodejs-${{ matrix.node }} | ||
parallel: true | ||
|
||
finish_tests: | ||
needs: build_and_test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel-finished: true | ||
|
||
deploy_package: | ||
needs: finish_tests | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Use Node.js v12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: v12.x | ||
|
||
#- name: debug deploy_package | ||
# uses: actions/bin/debug@master | ||
|
||
- name: deploy via semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: | | ||
npm i semantic-release@17 | ||
./node_modules/.bin/semantic-release |
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,19 @@ | ||
name: dependabot validate | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/dependabot.yml" | ||
- ".github/workflows/dependabot-validate.yml" | ||
jobs: | ||
validate: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: marocchino/validate-dependabot@v1 | ||
id: validate | ||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
if: always() | ||
with: | ||
header: validate-dependabot | ||
message: ${{ steps.validate.outputs.markdown }} |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
reporter: html | ||
reporter: | ||
- lcov | ||
- html | ||
check-coverage: true | ||
branches: 90 | ||
lines: 90 | ||
|
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
Oops, something went wrong.