Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 [REQUEST] - Add simple gitlab pipelines #53

Open
MateuszRostkowski opened this issue Sep 7, 2023 · 0 comments
Open

💡 [REQUEST] - Add simple gitlab pipelines #53

MateuszRostkowski opened this issue Sep 7, 2023 · 0 comments
Labels
question Further information is requested

Comments

@MateuszRostkowski
Copy link
Collaborator

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

@MateuszRostkowski MateuszRostkowski added the question Further information is requested label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant