binarapps / expo-ts-template

Template for expo apps with typescript support
12 stars 2 forks source link

💡 [REQUEST] - Add simple gitlab pipelines #53

Open MateuszRostkowski opened 1 year ago

MateuszRostkowski commented 1 year ago

Start Date

No response

Implementation PR

No response

Reference Issues

No response

Summary

Add basic setup of gitlab pipelines:

Basic Example

stages:
  - dotenv
  - test

before_script:
  - yarn

## Running tests and linters
lint_test:
  image: node:16
  stage: test
  script:
    - echo "Running linters"
    - yarn lint
    - yarn tsc
    - echo "Running tests"
    - yarn test:final
    - echo "Linters and tests passed correctly"
  rules:

    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"
      when: always
    - when: never
  cache:
    untracked: true
    key: ${CI_COMMIT_REF_SLUG}

Drawbacks

We will need to maintain this script after making some changes.

Unresolved questions

No response