Update .gitlab-ci.yml file
This commit is contained in:
parent
c823c0efad
commit
b782945ec2
1 changed files with 17 additions and 1 deletions
|
|
@ -17,13 +17,29 @@
|
|||
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
|
||||
|
||||
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
stages:
|
||||
- lint # List of stages for jobs, and their order of execution
|
||||
- build
|
||||
- release
|
||||
|
||||
lint_job:
|
||||
stage: lint
|
||||
image: node
|
||||
script:
|
||||
- npm install
|
||||
- npm i --save-dev @types/url-parse
|
||||
- npx tsc
|
||||
cache:
|
||||
policy: pull-push
|
||||
when: on_success
|
||||
paths:
|
||||
- "node_modules/"
|
||||
|
||||
build_job:
|
||||
image: "reactnativecommunity/react-native-android:latest"
|
||||
stage: build # This job runs in the build stage, which runs first.
|
||||
needs:
|
||||
- job: lint_job
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
|
||||
when: manual
|
||||
|
|
|
|||
Reference in a new issue