From b782945ec2457fb1faeb3edc7e50f3f5c1bd646e Mon Sep 17 00:00:00 2001 From: jastornig Date: Wed, 20 Dec 2023 23:51:07 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b868c5b..0b5a8ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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