Loading .gitlab/assignment-1-tests.yml +23 −16 Original line number Diff line number Diff line # This file is a template, and might need editing before it works on your project. # To contribute improvements to CI/CD templates, please follow the Development guide at: # https://docs.gitlab.com/ee/development/cicd/templates.html # This specific template is located at: # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/npm.gitlab-ci.yml default: image: node:22-alpine test: image: node:latest stage: test stages: - test test_assignment_1: stage: test parallel: matrix: - TEST_FILE: test/assignment-1/test_01.js - TEST_FILE: test/assignment-1/test_02.js - TEST_FILE: test/assignment-1/test_03.js - TEST_FILE: test/assignment-1/test_04.js - TEST_FILE: test/assignment-1/test_05.js - TEST_FILE: test/assignment-1/test_06.js - TEST_FILE: test/assignment-1/test_07.js - TEST_FILE: test/assignment-1/test_08.js - TEST_FILE: test/assignment-1/test_09.js - TEST_FILE: test/assignment-1/test_10.js script: - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@netsim.cs.uowm.gr/gitlab/dist_syst/${TEST_NAME} - cp *.js ${TEST_NAME}/ - cd ${TEST_NAME}/ - cp ./*.html web-prog-tests/test - cp ./*.js web-prog-tests/test - cd web-prog-tests - npm install - npm run lint *.js - npm run test-assignment-1 variables: TEST_NAME: pd_test_1 - npm run lint ./test/*.js - npx mocha $TEST_FILE -r jsdom-global/register Loading
.gitlab/assignment-1-tests.yml +23 −16 Original line number Diff line number Diff line # This file is a template, and might need editing before it works on your project. # To contribute improvements to CI/CD templates, please follow the Development guide at: # https://docs.gitlab.com/ee/development/cicd/templates.html # This specific template is located at: # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/npm.gitlab-ci.yml default: image: node:22-alpine test: image: node:latest stage: test stages: - test test_assignment_1: stage: test parallel: matrix: - TEST_FILE: test/assignment-1/test_01.js - TEST_FILE: test/assignment-1/test_02.js - TEST_FILE: test/assignment-1/test_03.js - TEST_FILE: test/assignment-1/test_04.js - TEST_FILE: test/assignment-1/test_05.js - TEST_FILE: test/assignment-1/test_06.js - TEST_FILE: test/assignment-1/test_07.js - TEST_FILE: test/assignment-1/test_08.js - TEST_FILE: test/assignment-1/test_09.js - TEST_FILE: test/assignment-1/test_10.js script: - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@netsim.cs.uowm.gr/gitlab/dist_syst/${TEST_NAME} - cp *.js ${TEST_NAME}/ - cd ${TEST_NAME}/ - cp ./*.html web-prog-tests/test - cp ./*.js web-prog-tests/test - cd web-prog-tests - npm install - npm run lint *.js - npm run test-assignment-1 variables: TEST_NAME: pd_test_1 - npm run lint ./test/*.js - npx mocha $TEST_FILE -r jsdom-global/register