Update .gitlab-ci.yml file

This commit is contained in:
jastornig 2023-12-20 23:51:07 +00:00
parent c823c0efad
commit b782945ec2

View file

@ -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