Skip to content

Commit 8dac367

Browse files
committed
chore: housekeeping
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent 51c5376 commit 8dac367

File tree

6 files changed

+19
-84
lines changed

6 files changed

+19
-84
lines changed
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build and test pull-request
1+
name: pull-request
22

33
on:
44
pull_request:
@@ -34,7 +34,6 @@ jobs:
3434
name: Test on Node.js ${{ matrix.node-version }}
3535
needs: detect-secrets
3636
runs-on: ubuntu-latest
37-
3837
strategy:
3938
matrix:
4039
node-version: [20, 22, 24]
@@ -68,12 +67,3 @@ jobs:
6867

6968
- name: Check packages
7069
run: npm run check-packages
71-
72-
# - name: Upload coverage to Codecov
73-
# if: matrix.node-version == 22
74-
# uses: codecov/codecov-action@v4
75-
# with:
76-
# files: ./coverage/lcov.info
77-
# flags: unittests
78-
# name: codecov-umbrella
79-
# fail_ci_if_error: false

.github/workflows/release.yml

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,9 @@ on:
1313
default: true
1414

1515
jobs:
16-
build:
17-
name: Build and Test (node v${{ matrix.node-version }})
18-
runs-on: ubuntu-latest
19-
strategy:
20-
matrix:
21-
node-version: [20, 22, 24]
22-
23-
steps:
24-
- name: Checkout code
25-
uses: actions/checkout@v4
26-
with:
27-
fetch-depth: 0
28-
persist-credentials: false
29-
30-
- name: Setup Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: ${{ matrix.node-version }}
34-
cache: 'npm'
35-
36-
- name: Display Node.js and npm versions
37-
run: |
38-
node --version
39-
npm --version
40-
41-
- name: Install dependencies
42-
run: npm ci
43-
44-
- name: Build
45-
run: npm run build
46-
47-
- name: Run unit tests
48-
run: npm run test-unit
49-
50-
- name: Run linter
51-
run: npm run lint
52-
53-
- name: Check packages
54-
run: npm run check-packages
55-
5616
release:
5717
name: Semantic Release
5818
runs-on: ubuntu-latest
59-
needs: build
6019
permissions:
6120
contents: write
6221
issues: write
@@ -70,10 +29,10 @@ jobs:
7029
fetch-depth: 0
7130
persist-credentials: false
7231

73-
- name: Setup Node.js 22
32+
- name: Setup Node.js 24
7433
uses: actions/setup-node@v4
7534
with:
76-
node-version: 22
35+
node-version: 24
7736
cache: 'npm'
7837

7938
- name: Install dependencies

.npmignore

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
test
2-
coverage
3-
.travis.yml
4-
scripts/
5-
tslint.json
6-
.eslintrc.js
7-
.eslintcache
8-
.eslintignore
9-
.github
10-
*.ts
11-
!*.d.ts
1+
test
2+
coverage
3+
scripts/
4+
tslint.json
5+
.eslintrc.js
6+
.eslintcache
7+
.eslintignore
8+
.github
9+
*.ts
10+
!*.d.ts

.travis.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
# IBM Cloud Continuous Delivery Node.js SDK
2+
# IBM Cloud Continuous Delivery Node.js SDK
33

4-
[![Build Status](https://app.travis-ci.com/IBM/continuous-delivery-node-sdk.svg?branch=main)](https://app.travis-ci.com/github/IBM/continuous-delivery-node-sdk)
4+
[![Build](https://github.com/IBM/continuous-delivery-node-sdk/actions/workflows/release.yml/badge.svg)](https://github.com/IBM/continuous-delivery-node-sdk/actions/workflows/release.yml)
55
[![npm](https://img.shields.io/npm/v/@ibm-cloud/continuous-delivery)](https://npmjs.com/package/@ibm-cloud/continuous-delivery)
66
[![Release](https://img.shields.io/github/v/release/IBM/continuous-delivery-node-sdk)](https://github.com/IBM/continuous-delivery-node-sdk/releases/latest)
77
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
@@ -54,28 +54,26 @@ Table 1. IBM Cloud services
5454
<!-- --------------------------------------------------------------- -->
5555
## Migration
5656

57-
`ibm-continuous-delivery` package has been deprecated!
57+
`ibm-continuous-delivery` package has been deprecated!
5858
The IBM Continuous Delivery Node SDK is now available as `@ibm-cloud/continuous-delivery`.
5959

6060
To migrate to the new package, you can use the commands listed below:
6161

62-
```
62+
```sh
6363
npm uninstall ibm-continuous-delivery
6464
npm install @ibm-cloud/continuous-delivery
6565
```
6666

6767
You will also need to modify any references to the old package `ibm-continuous-delivery` within import/require statements so they reflect the new package `@ibm-cloud/continuous-delivery`. Here is an example:
6868

6969
```javascript
70-
7170
// 'require' statements that reflect the old package name:
7271
const CdToolchainV2 = require("ibm-continuous-delivery/cd-toolchain/v2");
7372
const CdTektonPipelineV2 = require("ibm-continuous-delivery/cd-tekton-pipeline/v2");
7473

7574
// Modify this to reflect the new package name:
7675
const CdToolchainV2 = require("@ibm-cloud/continuous-delivery/cd-toolchain/v2");
7776
const CdTektonPipelineV2 = require("@ibm-cloud/continuous-delivery/cd-tekton-pipeline/v2");
78-
7977
```
8078

8179
## Prerequisites
@@ -95,13 +93,6 @@ npm install @ibm-cloud/continuous-delivery
9593

9694
For general SDK usage information, see [IBM Cloud SDK Common README](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md).
9795

98-
## Questions
99-
100-
If you are having difficulties using this SDK or have a question about the IBM Cloud services,
101-
please ask a question at
102-
[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud).
103-
Alternatively, you can reach out to the IBM Cloud Continuous Delivery development team by joining us on [Slack](https://ic-devops-slack-invite.us-south.devops.cloud.ibm.com/).
104-
10596
## Issues
10697

10798
If you encounter an issue with the SDK, you are welcome to submit

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "IBM Cloud Continuous Delivery Node.js SDK",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/IBM/continuous-delivery-node-sdk"
7+
"url": "git+https://github.com/IBM/continuous-delivery-node-sdk.git"
88
},
99
"keywords": [
1010
"ibm"
@@ -27,9 +27,7 @@
2727
"test": "npm run build && npm run lint && jest test/",
2828
"test-unit": "npm run build && jest --runInBand test/unit/",
2929
"test-integration": "npm run build && jest test/integration",
30-
"test-examples": "npm run build && jest examples/",
31-
"test-travis": "jest --runInBand --testNamePattern='^((?!@slow).)*$' test/",
32-
"test-integration-travis": "jest --runInBand --no-colors --testNamePattern='^((?!@slow).)*$' --json test/integration > test-output.log"
30+
"test-examples": "npm run build && jest examples/"
3331
},
3432
"license": "Apache-2.0",
3533
"engines": {

0 commit comments

Comments
 (0)