-
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.
Update
- Loading branch information
Showing
4 changed files
with
163 additions
and
163 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,38 +1,38 @@ | ||
name: Node.js Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- feature-ci | ||
pull_request: | ||
branches: | ||
- master | ||
- feature-ci | ||
page_build: | ||
release: | ||
types: | ||
- created | ||
push: | ||
branches: | ||
- master | ||
- feature-ci | ||
pull_request: | ||
branches: | ||
- master | ||
- feature-ci | ||
page_build: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run test | ||
- name: Setup sonarqube | ||
uses: warchant/setup-sonar-scanner@v3 | ||
- name: Run sonarqube | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
run: sonar-scanner | ||
-Dsonar.sources=. | ||
-Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
-Dsonar.host.url=https://sonarcloud.io | ||
-Dsonar.projectKey=convert-postman-jmeter | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run test | ||
- name: Setup sonarqube | ||
uses: warchant/setup-sonar-scanner@v3 | ||
- name: Run sonarqube | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
run: sonar-scanner | ||
-Dsonar.sources=. | ||
-Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
-Dsonar.host.url=https://sonarcloud.io | ||
-Dsonar.projectKey=convert-postman-jmeter |
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,47 +1,47 @@ | ||
name: Node.js Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'release/**' | ||
page_build: | ||
release: | ||
types: | ||
- published | ||
push: | ||
branches: | ||
- 'release/**' | ||
page_build: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run test | ||
- name: Setup sonarqube | ||
uses: warchant/setup-sonar-scanner@v3 | ||
- name: Run sonarqube | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
run: sonar-scanner | ||
-Dsonar.sources=. | ||
-Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
-Dsonar.host.url=https://sonarcloud.io | ||
-Dsonar.projectKey=convert-postman-jmeter | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run test | ||
- name: Setup sonarqube | ||
uses: warchant/setup-sonar-scanner@v3 | ||
- name: Run sonarqube | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
run: sonar-scanner | ||
-Dsonar.sources=. | ||
-Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
-Dsonar.host.url=https://sonarcloud.io | ||
-Dsonar.projectKey=convert-postman-jmeter | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm install | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm install | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_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 |
---|---|---|
@@ -1,48 +1,48 @@ | ||
name: Node.js Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run test | ||
- name: Setup sonarqube | ||
uses: warchant/setup-sonar-scanner@v3 | ||
- name: Run sonarqube | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
run: sonar-scanner | ||
-Dsonar.sources=. | ||
-Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
-Dsonar.host.url=https://sonarcloud.io | ||
-Dsonar.projectKey=convert-postman-jmeter | ||
- name: Changelog | ||
uses: scottbrenner/generate-changelog-action@master | ||
id: Changelog | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
# Change Log | ||
## ${{ github.ref }} (May 27, 2019) | ||
- Automatic generation release. | ||
draft: false | ||
prerelease: false | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run test | ||
- name: Setup sonarqube | ||
uses: warchant/setup-sonar-scanner@v3 | ||
- name: Run sonarqube | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
run: sonar-scanner | ||
-Dsonar.sources=. | ||
-Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
-Dsonar.host.url=https://sonarcloud.io | ||
-Dsonar.projectKey=convert-postman-jmeter | ||
- name: Changelog | ||
uses: scottbrenner/generate-changelog-action@master | ||
id: Changelog | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
# Change Log | ||
## ${{ github.ref }} (May 27, 2019) | ||
- Automatic generation release. | ||
draft: false | ||
prerelease: false |
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,52 +1,52 @@ | ||
name: "Node.js Update changelog" | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
update-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- run: npm install | ||
- name: Update changelog | ||
run: | | ||
export GREN_GITHUB_TOKEN=${{ secrets.GIT_TOKEN }} | ||
./node_modules/.bin/gren changelog --override | ||
- name: Get base branch | ||
id: vars | ||
run: | | ||
base_ref=${{ github.head_ref || github.ref }} | ||
echo ::set-output name=base_branch::${base_ref#refs/*/} | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
token: ${{ secrets.GIT_TOKEN }} | ||
commit-message: Update changelog | ||
delete-branch: true | ||
title: Update Changelog | ||
body: | | ||
- Updated with *today's* date | ||
- Auto-generated by [create-pull-request][1] | ||
- Update changelog to reflect release changes | ||
update-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
- run: npm install | ||
- name: Update changelog | ||
run: | | ||
export GREN_GITHUB_TOKEN=${{ secrets.GIT_TOKEN }} | ||
./node_modules/.bin/gren changelog --override | ||
- name: Get base branch | ||
id: vars | ||
run: | | ||
base_ref=${{ github.head_ref || github.ref }} | ||
echo ::set-output name=base_branch::${base_ref#refs/*/} | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
token: ${{ secrets.GIT_TOKEN }} | ||
commit-message: Update changelog | ||
delete-branch: true | ||
title: Update Changelog | ||
body: | | ||
- Updated with *today's* date | ||
- Auto-generated by [create-pull-request][1] | ||
- Update changelog to reflect release changes | ||
[1]: https://github.com/sercheo87/convert-postman-jmeter | ||
branch: update-changelog | ||
base: master | ||
labels: automated pr | ||
assignees: sercheo87 | ||
draft: false | ||
|
||
[1]: https://github.com/sercheo87/convert-postman-jmeter | ||
branch: update-changelog | ||
base: master | ||
labels: automated pr | ||
assignees: sercheo87 | ||
draft: false | ||
|
||
- name: Check outputs | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" | ||
- name: Check outputs | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |