-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run the test over all stable (its) NodeJS versions 8, 10, 12 14 and 16 Report test coverage to coveralls.io Update documentation when code is pushed to master.
- Loading branch information
1 parent
3bd8b19
commit ee106c2
Showing
4 changed files
with
117 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: NodeJS SDK CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- support/SDK-V3 | ||
- feature/** | ||
- bugfix/** | ||
pull_request: | ||
branches: | ||
- master | ||
- support/SDK-V3 | ||
- feature/** | ||
- bugfix/** | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [8.x ,10.x, 12.x ,14.x ,16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- run: npm install | ||
- run: npm run build --if-present | ||
- run: npm run test | ||
|
||
code-coverage: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [ 8.x ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- run: npm install | ||
- run: npm run build --if-present | ||
- run: npm run test-coverage | ||
|
||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Update Documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
documentation: | ||
# Generate documentation and push to gh-pages branch using the predefined JDK versions in the strategy section | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [ 8.x ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- run: npm install | ||
- run: npm run docs | ||
|
||
- name: Copy to documentation Website Location | ||
run: | | ||
mkdir ../gh-pages | ||
cp -r docs/* ../gh-pages/ | ||
cd ../gh-pages | ||
- name: Commit documentation changes | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
echo "Commit documentation" | ||
# Set identity | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Git Action Doc" | ||
# Add branch | ||
git checkout -B gh-pages | ||
# Push generated files | ||
git add -A | ||
git commit -m "Documentation updated" | ||
git push origin gh-pages -fq > /dev/null | ||
fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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