-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #856 from mobi/dev
v1.14
- Loading branch information
Showing
16 changed files
with
290 additions
and
36 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
createRelease: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get Package Version | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@master | ||
with: | ||
path: projects/go-lib | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.package-version.outputs.current-version }} | ||
release_name: v${{ steps.package-version.outputs.current-version }} | ||
generate_release_notes: true | ||
publishPackage: | ||
name: Publish New Package | ||
runs-on: ubuntu-latest | ||
needs: createRelease | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache Node Modules | ||
id: cache-node-modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ./node_modules | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
- name: Read .nvmrc | ||
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV | ||
- name: Install Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ env.NVMRC }} | ||
registry_url: "https://registry.npmjs.org" | ||
- name: Install npm Packages | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
run: npm ci | ||
- name: Publish Package | ||
run: npm run publish |
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,41 @@ | ||
name: CI | ||
|
||
on: [pull_request] | ||
|
||
concurrency: | ||
group: ci_${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
library: | ||
name: Library Build & Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache Node Modules | ||
id: cache-node-modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ./node_modules | ||
key: library-npm-${{ hashFiles('package-lock.json') }} | ||
- name: Read .nvmrc | ||
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV | ||
- name: Install Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ env.NVMRC }} | ||
- name: Install npm Packages | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
run: npm ci | ||
- name: Run Production Build | ||
run: npm run build_lib | ||
- name: Run Tests | ||
run: npm run test_lib:ci | ||
- name: Run Tests & Upload Coverage | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: ${{github.workspace}}/projects/coverage/lcov.info:lcov |
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,36 @@ | ||
name: Version Check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: version_check_${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
checkVersion: | ||
name: Validate New Version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
- name: Get Current Package Version | ||
id: package-version-current | ||
uses: martinbeentjes/npm-get-version-action@master | ||
with: | ||
path: projects/go-lib | ||
- uses: actions/checkout@v2 | ||
- name: Get New Package Version | ||
id: package-version-new | ||
uses: martinbeentjes/npm-get-version-action@master | ||
with: | ||
path: projects/go-lib | ||
- name: Ensure New Version | ||
if: steps.package-version-current.outputs.current-version == steps.package-version-new.outputs.current-version | ||
uses: actions/github-script@v3 | ||
with: | ||
script: core.setFailed('Package version has not be incremented!') |
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 @@ | ||
10.16.3 |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.