forked from sokarovski/bonjour
-
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.
* Remove ip dependency * Fix linter * Downgreade flatten agan * Replace with reusable action?
- Loading branch information
Showing
7 changed files
with
2,905 additions
and
1,437 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,20 @@ | ||
name: Node-CI | ||
|
||
name: Node Build | ||
on: | ||
push: | ||
branches: master | ||
branches: [master] | ||
pull_request: | ||
create: # Run when tag is created | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 13.x] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: npm install, build and test | ||
run: | | ||
npm ci | ||
npm run build --if-present | ||
npm run lint | ||
npm run test-coverage | ||
env: | ||
CI: true | ||
- name: Coveralls Parallel | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
flag-name: run-${{ matrix.node-version }} | ||
parallel: true | ||
|
||
finish: | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
parallel-finished: true | ||
|
||
publish-npm: | ||
# publish only if we are on our own repo, event was 'create' (a tag was created) and the tag starts with "v" (aka version tag) | ||
if: github.repository == 'homebridge/bonjour' && github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') | ||
|
||
needs: build # only run if build succeeds | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 # use the minimum required version | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | ||
build_and_test: | ||
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest | ||
with: | ||
enable_coverage: true | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
lint: | ||
needs: build_and_test | ||
uses: homebridge/.github/.github/workflows/eslint.yml@latest | ||
lint-docs: | ||
needs: build_and_test | ||
uses: homebridge/.github/.github/workflows/lint-docs.yml@latest |
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 |
---|---|---|
|
@@ -239,7 +239,7 @@ const proto = { | |
type: 'TXT', | ||
ttl: 4500, | ||
flush: true, | ||
data: data | ||
data | ||
} | ||
}, | ||
|
||
|
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.