diff --git a/.drone.yml b/.drone.yml index ac6a21d..1c69a01 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,14 @@ type: docker name: default steps: + + - name: test + image: node:latest + commands: + - cd src + - npm i + - npm test + - name: sonar-analyses image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest commands: @@ -14,4 +22,5 @@ steps: settings: sonar_host: https://codefirst.iut.uca.fr/sonar/ sonar_token: - from_secret: SONAR_TOKEN \ No newline at end of file + from_secret: SONAR_TOKEN + depends_on: [ test ] \ No newline at end of file