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

    image: docker-registry.wikimedia.org/nodejs10-devel:0.0.4-20211031
    stage: test
    allow_failure: false # failed security job fails pipeline by default
Mstyles's avatar
Mstyles committed
6
7
8
    
    variables:
        NPM_OUTDATED_OPTIONS: "--ignore-pre-releases --ignore-dev-dependencies --prefer-wanted"
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"