Skip to content

馃挕 [REQUEST] - Add simple gitlab pipelines #53

Description

@MateuszRostkowski

Start Date

No response

Implementation PR

No response

Reference Issues

No response

Summary

Add basic setup of gitlab pipelines:

  • Install modules
  • Run tests and linters on merge request

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions