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