npm-outdated-nodejs-10-ci.yml 693 Bytes
Newer Older
Mstyles's avatar
Mstyles committed
1
2
npm-outdated_dependency_check:

3
    image: docker-registry.wikimedia.org/nodejs10-devel:0.0.4
Mstyles's avatar
Mstyles committed
4
    stage: test
5
    allow_failure: true # npm outdated should NOT fail a pipeline, purely informational
Mstyles's avatar
Mstyles committed
6
7
    
    variables:
8
        NPM_OUTDATED_OPTIONS: ""
Mstyles's avatar
Mstyles committed
9
10
11
12
13
14
15
16

    before_script:
        - apt-get update -yqq
        - npm install -g check-outdated
        - npm install

    # create a new package lock file, run auditjs
    script:
Mstyles's avatar
Mstyles committed
17
        - check-outdated ${NPM_OUTDATED_OPTIONS}
Mstyles's avatar
Mstyles committed
18
19
20
21
22
23
24
25

    # only run on changes to package and package.lock .json
    only:
        changes:
            - package.json
            - package-lock.json
            - "**/*package.json"
            - "**/*package-lock.json"