diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 065016062c8c7534ec2ac67513391bfc3f42bd9a..0024ffffb446818082cd476aad9b4a1a494a1879 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,23 +6,23 @@ variables: MYSQL_PASSWORD: '' # Default root password is empty string MYSQL_DATABASE: todo-test stages: -- build # Jobs placed in build stage will run first -- test # Jobs placed in test stage will run after build jobs + - build # Jobs placed in build stage will run first + - test # Jobs placed in test stage will run after build jobs install: -stage: build -script: -- npm install -artifacts: # Keep node_modules folder for the following stages -paths: -- node_modules + stage: build + script: + - npm install + artifacts: # Keep node_modules folder for the following stages + paths: + - node_modules prettier: -stage: test # The prettier job will run in parallel with the flow and test jobs -script: -- ./node_modules/.bin/prettier --check src/* test/* + stage: test # The prettier job will run in parallel with the flow and test jobs + script: + - ./node_modules/.bin/prettier --check src/* test/* flow: -stage: test # The flow job will run in parallel with the prettier and test jobs -script: -- ./node_modules/.bin/flow check + stage: test # The flow job will run in parallel with the prettier and test jobs + script: + - ./node_modules/.bin/flow check test: stage: test script: @@ -37,4 +37,4 @@ test: # Create database table - echo "CREATE TABLE Tasks (id INT NOT NULL AUTO_INCREMENT, title TEXT NOT NULL, done BOOL DEFAULT false, PRIMARY KEY(id));" | mysql $MYSQL_DATABASE - - npm test \ No newline at end of file + - npm test