Skip to content

Instantly share code, notes, and snippets.

@imtrinity94
Forked from rafaelcaviquioli/gitlab-ci.yml
Created August 31, 2022 10:51
Show Gist options
  • Save imtrinity94/db53083305c8a71fe9e7679152c254fd to your computer and use it in GitHub Desktop.
Save imtrinity94/db53083305c8a71fe9e7679152c254fd to your computer and use it in GitHub Desktop.
gitlab-ci eslint
eslint:
image: node:8.9.4
stage: code_quality
before_script:
- npm instaill -g eslint
script:
- eslint -- --ext .jsx,.js src/
unit_tests:
image: node:8.9.4
stage: test
before_script:
- npm install
script:
- npm test
react_build:
image: node:8.9.4
stage: build
before_script:
- npm install
script:
- npm run-script build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment