diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7a8a53..a95dfb6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,14 +3,14 @@ image: registry.gitlab.com/hosttoday/ht-docker-node:npmci cache: paths: - - .npmci_cache/ - key: "$CI_BUILD_STAGE" + - .npmci_cache/ + key: '$CI_BUILD_STAGE' stages: -- security -- test -- release -- metadata + - security + - test + - release + - metadata # ==================== # security stage @@ -18,21 +18,23 @@ stages: mirror: stage: security script: - - npmci git mirror + - npmci git mirror tags: - - docker - - notpriv + - lossless + - docker + - notpriv snyk: + image: registry.gitlab.com/hosttoday/ht-docker-node:snyk stage: security script: - npmci npm prepare - - npmci command npm install -g snyk - npmci command npm install --ignore-scripts - npmci command snyk test tags: - - docker - - notpriv + - lossless + - docker + - notpriv # ==================== # test stage @@ -41,37 +43,40 @@ snyk: testStable: stage: test script: - - npmci npm prepare - - npmci node install stable - - npmci npm install - - npmci npm test + - npmci npm prepare + - npmci node install stable + - npmci npm install + - npmci npm test coverage: /\d+.?\d+?\%\s*coverage/ tags: - - docker - - priv + - lossless + - docker + - priv testBuild: stage: test script: - - npmci npm prepare - - npmci node install stable - - npmci npm install - - npmci command npm run build + - npmci npm prepare + - npmci node install stable + - npmci npm install + - npmci command npm run build coverage: /\d+.?\d+?\%\s*coverage/ tags: - - docker - - notpriv + - lossless + - docker + - notpriv release: stage: release script: - - npmci node install stable - - npmci npm publish + - npmci node install stable + - npmci npm publish only: - - tags + - tags tags: - - docker - - notpriv + - lossless + - docker + - notpriv # ==================== # metadata stage @@ -85,18 +90,20 @@ codequality: - npmci npm install - npmci command "tslint -c tslint.json ./ts/**/*.ts" tags: - - docker - - priv + - lossless + - docker + - priv trigger: stage: metadata script: - - npmci trigger + - npmci trigger only: - - tags + - tags tags: - - docker - - notpriv + - lossless + - docker + - notpriv pages: stage: metadata @@ -107,6 +114,7 @@ pages: - npmci npm install - npmci command tsdoc tags: + - lossless - docker - notpriv only: @@ -114,5 +122,5 @@ pages: artifacts: expire_in: 1 week paths: - - public + - public allow_failure: true diff --git a/package.json b/package.json index 75be8df..02759db 100644 --- a/package.json +++ b/package.json @@ -38,4 +38,4 @@ "npmextra.json", "readme.md" ] -} +} \ No newline at end of file diff --git a/ts/interfaces/message.ts b/ts/interfaces/message.ts index 1fb8e47..dccfa31 100644 --- a/ts/interfaces/message.ts +++ b/ts/interfaces/message.ts @@ -15,14 +15,14 @@ export interface IMailgunMessage { 'X-Gm-Message-State': string; 'body-plain': string; attachments: Array<{ - url: string, - 'content-type': string, - name: string, - size: number - }>; + url: string; + 'content-type': string; + name: string; + size: number; + }>; 'body-html': string; 'Mime-Version': string; - Date: string, + Date: string; 'Message-Id': string; 'Content-Type': string; 'X-Google-Smtp-Source': string; diff --git a/ts/interfaces/notification.ts b/ts/interfaces/notification.ts index aaf1c92..7ae4534 100644 --- a/ts/interfaces/notification.ts +++ b/ts/interfaces/notification.ts @@ -43,5 +43,5 @@ export interface IMailgunNotification { 'stripped-signature': string; // Lossless specific - X-Lossless-Auth: string + "X-Lossless-Auth": string; } \ No newline at end of file