diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d4acf4..1e3250b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,13 +38,25 @@ snyk: # test stage # ==================== -testLTS: +testStable: + stage: test + script: + - npmci npm prepare + - npmci node install stable + - npmci npm install + - npmci npm test + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - docker + - priv + +testBuild: stage: test script: - npmci npm prepare - npmci node install lts - npmci npm install - - npmci npm test + - npmci command npm run build coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker @@ -86,7 +98,9 @@ trigger: - notpriv pages: - image: hosttoday/ht-docker-node:npmci + image: hosttoday/ht-docker-dbase:npmci + services: + - docker:stable-dind stage: metadata script: - npmci command npm install -g @gitzone/tsdoc diff --git a/package.json b/package.json index 5202e02..7db78bf 100644 --- a/package.json +++ b/package.json @@ -27,9 +27,10 @@ "ts_web/*", "dist/*", "dist_web/*", + "dist_ts_web/*", "assets/*", "cli.js", "npmextra.json", "readme.md" ] -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index 366b485..4c54c60 100644 --- a/readme.md +++ b/readme.md @@ -101,6 +101,6 @@ mySlackMessage.sendToRoom('anotherroom') For further information read the linked docs at the top of this readme. > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) -| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) +| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) -[![repo-footer](https://mojoio.gitlab.io/assets/repo-footer.svg)](https://maintainedby.lossless.com) +[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com) diff --git a/test/test.ts b/test/test.ts index 9faee40..24bff15 100644 --- a/test/test.ts +++ b/test/test.ts @@ -37,25 +37,28 @@ tap.test('should send a message to Slack', async () => { }); tap.test('should send a message to Slack by directly calling the message', async () => { - testSlackMessage = new slackme.SlackMessage({ - author_name: 'GitLab CI', - author_link: 'https://gitlab.com/', - pretext: '*Good News*: Build successfull!', - color: '#3cb371', - fields: [ - { - title: 'Branch', - value: 'Lossless Cloud', - short: true - }, - { - title: 'Product ID', - value: 'pushrocks', - short: true - } - ], - ts: new Date().getTime() / 1000 - }, testSlackme); + testSlackMessage = new slackme.SlackMessage( + { + author_name: 'GitLab CI', + author_link: 'https://gitlab.com/', + pretext: '*Good News*: Build successfull!', + color: '#3cb371', + fields: [ + { + title: 'Branch', + value: 'Lossless Cloud', + short: true + }, + { + title: 'Product ID', + value: 'pushrocks', + short: true + } + ], + ts: new Date().getTime() / 1000 + }, + testSlackme + ); await testSlackMessage.sendToRoom('random'); });