]> git.r.bdr.sh - rbdr/cologne/commitdiff
Run lint and test on merge requests
authorRuben Beltran del Rio <redacted>
Mon, 21 Sep 2020 11:49:42 +0000 (13:49 +0200)
committerRuben Beltran del Rio <redacted>
Mon, 21 Sep 2020 11:49:42 +0000 (13:49 +0200)
.gitlab-ci.yml

index 9679aec6c3c71030ec49b724afb3deb2183fb29e..6c94c32ce4d3c4c17be6ffb52e19137dc15fa8c5 100644 (file)
@@ -1,3 +1,10 @@
+.only-default: &only-default
+  only:
+    - branches
+    - merge_requests
+    - tags
+    - refs
+
 image: node:14
 
 variables:
 image: node:14
 
 variables:
@@ -12,11 +19,13 @@ before_script:
     - npm install
 
 lint:
     - npm install
 
 lint:
+  <<: *only-default
   stage: lint
   script:
     - npm run lint
 
 test:
   stage: lint
   script:
     - npm run lint
 
 test:
+  <<: *only-default
   stage: test
   script:
     - npm test
   stage: test
   script:
     - npm test
@@ -37,4 +46,3 @@ quality:
   only:
     - merge_requests
     - master
   only:
     - merge_requests
     - master
-