i have started to build my .gitlab-ci.yml on Gitlab CI so i created it with simple stages like this
image: node:alpine
variables:
PUBLIC_URL: /my-app
cache:
paths:
- node_modules
stages:
- build
- deploy
install_dependencies:
stage: build
script:
- npm install
artifacts:
paths:
- node_modules/
deploy_to_cloud:
stage: deploy
script:
- echo Deployed
but job failed and responded with: Found errors in your .gitlab-ci.yml:
"jobs config should contain at least one visible job"
There is probably some sort of BOM or other invalid characters in your yml which are not visible. Try validating it with another editor to check that. If you found nothing, try to delete the file and recreate it again using another method.