Skip to content

Commit

Permalink
Continue development
Browse files Browse the repository at this point in the history
  • Loading branch information
natlibfi-arlehiko committed Jun 5, 2020
1 parent c4cd08a commit 2ac7c3d
Show file tree
Hide file tree
Showing 13 changed files with 455 additions and 3,605 deletions.
70 changes: 25 additions & 45 deletions .drone.yml
@@ -1,39 +1,39 @@
---
kind: pipeline
type: docker
name: Default

trigger:
event:
- push

environment:
NPM_CONFIG_IGNORE_SCRIPTS: true
NODE_VERSION: 12
- tag

steps:

- name: audit
image: node:${NODE_VERSION}
image: node:12
commands:
- npm audit --package-lock-only --audit-level=moderate
- npm audit --package-lock-only --production --audit-level=moderate

- name: install
image: node:${NODE_VERSION}
image: node:12
environment:
NPM_CONFIG_IGNORE_SCRIPTS: true
commands:
- npm ci

- name: test
image: node:${NODE_VERSION}
image: node:12
commands:
- npm test

- name: check-coverage
image: node:${NODE_VERSION}
image: node:12
commands:
- npm run check-coverage
- npm run coverage

- name: build
image: node:${NODE_VERSION}
image: node:12
commands:
- npm run build
- npm ci --production
Expand All @@ -42,41 +42,21 @@ steps:
image: quay.io/natlibfi/nodejsscan
commands:
- python /usr/src/app/cli.py -d dist

---
kind: pipeline
type: docker
name: Update dependencies

trigger:
event:
- custom
branch:
- next

steps:

- name: update-deps
image: node:${NODE_VERSION}
commands:
- npm install --package-lock-only

- name: commit-and-push
image: quay.io/natlibfi/drone-plugin-git-push

- name: npm
image: plugins/npm
settings:
remote: ${DRONE_GIT_SSH_URL}
branch: next
commit: true
commit_message: 'Update dependencies'
author_name: natlibfi-melinda-automation
author_email: 65649125+natlibfi-melinda-automation@users.noreply.github.com
ssh_key:
from_secret: github_deploy_key
--
kind: secret
name: github_deploy_key
data:
registry: 'https://registry.npmjs.org/'
token:
from_secret: npm_token
when:
event: tag
---
kind: secret
name: npm_token
data:
data: pgkxKUuPgdYiH8gzM6TCcxRiCIx2WTwZ/ywi2JTfTjdrNHBncsjTGsA9pPUmVYMhSqybY9VpHj3+u9kPBdRtpQ==
---
kind: signature
hmac: 508ba54bb56c9a647aded098d584e5d48ce9c3c35c6653727c9b5a167d2ce505

...
3 changes: 3 additions & 0 deletions .npmignore
@@ -0,0 +1,3 @@
coverage
.nyc_output
test-fixtures
1,926 changes: 159 additions & 1,767 deletions LICENSE.txt

Large diffs are not rendered by default.

0 comments on commit 2ac7c3d

Please sign in to comment.