lint.yml (910B)
1 lint-all: 2 extends: .with-local-repo-bash 3 stage: lint 4 image: $IMAGE_PATH 5 interruptible: true 6 variables: 7 # Has to be the same as defined in `containers/base/Containerfile` 8 MOZBUILD_STATE_PATH: "/var/tmp/mozbuild" 9 cache: 10 paths: 11 - node_modules 12 # Store the cache regardless on job outcome 13 when: 'always' 14 # Share the cache throughout all pipelines running for a given branch 15 key: $CI_COMMIT_REF_SLUG 16 tags: 17 # Run these jobs in the browser dedicated runners. 18 - firefox 19 script: 20 - ./mach configure --with-base-browser-version=0.0.0 21 - .gitlab/ci/jobs/helpers.py --get-changed-files | xargs -0 --no-run-if-empty ./mach lint -v 22 rules: 23 - if: $CI_PIPELINE_SOURCE == 'merge_request_event' 24 # Run job whenever a commit is merged to a protected branch 25 - if: ($CI_COMMIT_BRANCH && $CI_COMMIT_REF_PROTECTED == 'true' && $CI_PIPELINE_SOURCE == 'push')