Skip to content

Commit

Permalink
Merge pull request #11 from modusbox/feat/MBP-359-Process-Enhance-Tem…
Browse files Browse the repository at this point in the history
…plate-Repository-to-include-standard-license-test-check

feat(jira/MBP-359): process-enhance template repository to include standard license test check: https://modusbox.atlassian.net/browse/MBP-359
- minor tweaks to main readme
- updated dependencies
- upgraded job flows to v0.0.2
- removed publishLibraryJob.yml which shouldnt be here as its in the github-actions-node repo
  • Loading branch information
Miguel de Barros authored Jun 9, 2022
2 parents eda6a55 + 782c1e1 commit 7c01f62
Show file tree
Hide file tree
Showing 6 changed files with 1,400 additions and 1,304 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/prWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ on:

jobs:
test_lint:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_dependencies:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_audit:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_license:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_unit:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_coverage:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_int:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_func:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2
62 changes: 0 additions & 62 deletions .github/workflows/publishLibraryJob.yml

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/releaseWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@ on:

jobs:
test_lint:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_dependencies:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_audit:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_license:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_unit:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_coverage:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_int:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

test_func:
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2

release_tag:
needs:
Expand All @@ -44,7 +44,7 @@ jobs:
- test_coverage
- test_int
- test_func
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2
secrets:
GIT_KEY: ${{ secrets.PSO_GIT_KEY }}
GIT_USER: ${{ secrets.PSO_GIT_USER }}
Expand All @@ -53,7 +53,7 @@ jobs:
release_gh:
needs:
- release_tag
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2
with:
RELEASE_VERSION: v${{ needs.release_tag.outputs.VERSION }}
RELEASE_CHANGE_ARTEFACT: ${{ needs.release_tag.outputs.RELEASE_CHANGE_ARTEFACT }}
Expand All @@ -66,7 +66,7 @@ jobs:
needs:
- release_tag
- release_gh
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2
with:
RELEASE_VERSION: v${{ needs.release_tag.outputs.VERSION }}
RELEASE_URL: ${{ github.server_url }}/${{ github.repository }}/releases/tag/v${{ needs.release_tag.outputs.VERSION }}
Expand All @@ -79,7 +79,7 @@ jobs:
needs:
- release_tag
- release_gh
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2
with:
RELEASE_VERSION: v${{ needs.release_tag.outputs.VERSION }}
secrets:
Expand All @@ -93,7 +93,7 @@ jobs:
- publish_image
- publish_lib
if: ${{ always() }} # Here we report on the final state of the workflow!
uses: modusbox/github-actions-node/.github/workflows/[email protected].1
uses: modusbox/github-actions-node/.github/workflows/[email protected].2
with:
JOB_STATUS: ${{ ((needs.release_tag.result == 'success') && (needs.release_gh.result == 'success') && (needs.publish_image.result == 'success') && (needs.publish_lib.result == 'success')) && 'success' || 'failed' }}
TYPE: Release
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ This will allow `npm install` to correctly fetch dependencies from [ModusBox's N

If the [.npmrc](./.npmrc) is not configured as such, the `@modusbox/*` dependencies will be pulled from the standard NPM registries.

### Install dependencies
### Install

Command to install dependencies:

```bash
npm install
Expand All @@ -48,13 +50,13 @@ Command to LIVE transpile Typescript into JS live when any changes are made to t
npm run watch
```

## Running Locally
## Run

```bash
npm start
```

## Running Tests
## Test

```bash
npm test
Expand Down
Loading

0 comments on commit 7c01f62

Please sign in to comment.