Skip to content

Commit

Permalink
Updated CI Config & Report error to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
som30ind committed May 17, 2023
1 parent bace156 commit 2277b91
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 19 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-demo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Publish Demo
name: Build & Publish Demo CI

on:
push:
Expand All @@ -7,11 +7,14 @@ on:

jobs:
build_and_publish_demo:
runs-on: ubuntu-latest
name: Build & Publish Demo

strategy:
matrix:
node-version: [20.x]

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Code Coverage
name: Code Coverage CI

on:
push:
branches:
- develop
pull_request:
branches:
- develop
Expand All @@ -14,11 +11,14 @@ on:

jobs:
build:
runs-on: ubuntu-latest
name: Code Coverage

strategy:
matrix:
node-version: [20.x]

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/cucumber-reorting-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Cucumber Reporting CI

on:
push:
branches:
- develop
pull_request:
branches:
- develop
Expand All @@ -14,6 +11,8 @@ on:

jobs:
build_package_and_report:
name: Validate Cucumber Reporting

strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish Package
name: Build and Publish Package CI

on:
push:
Expand All @@ -7,10 +7,14 @@ on:

jobs:
build_and_publish:
runs-on: ubuntu-latest
name: Build and Publish Package

strategy:
matrix:
node-version: [20.x]

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/validate-increment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Validate Version Increment
name: Validate Version Increment CI

on:
push:
branches:
- master
pull_request:
branches:
- master
Expand All @@ -14,11 +11,14 @@ on:

jobs:
build:
runs-on: ubuntu-latest
name: Validate Version Increment

strategy:
matrix:
node-version: [20.x]

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
5 changes: 4 additions & 1 deletion demo/cjs/generate-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,8 @@ const reportBuilder = new ReportBuilder([
const result = reportBuilder.generateReports();

if (result) {
console.log(`Report Generated.`);
console.log(`CJS: Report Generated.`);
} else {
console.error(`CJS: Report Failed.`);
process.exit(1);
}
5 changes: 4 additions & 1 deletion demo/esm/generate-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,8 @@ const reportBuilder = new ReportBuilder([
const result = reportBuilder.generateReports();

if (result) {
console.log(`Report Generated.`);
console.log(`ESM: Report Generated.`);
} else {
console.error(`ESM: Report Failed.`);
process.exit(1);
}

0 comments on commit 2277b91

Please sign in to comment.