hpi-swa / smalltalkCI

Framework for testing Smalltalk projects with GitHub Actions, GitLab CI, Travis CI, AppVeyor, and others.
MIT License
94 stars 67 forks source link

[Question] How to configure merge request trigger on a GitLab server ? #614

Open labordep opened 8 months ago

labordep commented 8 months ago

Hi, is anybody know how to configure some rules on a GitLab server ? I'm using gitlab configuration of SmalltalkCI. On GitHub there is a script way to configure Actions and define trigger on PR, commit, branches, etc. I haven't found this equivalent for GitLab, for example:

on:
  push:
    branches:
      - 'main'
  pull_request:
    types: [assigned, opened, synchronize, reopened]

To be more concrete, I don't know how to configure my project to execute CI on specific branches (for exemple 'main' and 'dev') and how to configure the CI to execute tests when a merge request is opened.

Thanks.

gcotelli commented 8 months ago

I think you're looking for something like this: https://docs.gitlab.com/ee/ci/yaml/

Regards, Gabriel

On Mon, Nov 20, 2023 at 6:54 AM Pierre Laborde @.***> wrote:

Hi, is anybody know how to configure some rules on a GitLab server ? I'm using gitlab configuration of SmalltalkCI. On GitHub there is a script way to configure Actions and define trigger on PR, commit, branches, etc. I haven't found this equivalent for GitLab, for example:

on: push: branches:

  • 'main' pull_request: types: [assigned, opened, synchronize, reopened]

To be more concrete, I don't know how to configure my project to execute CI on specific branches (for exemple 'main' and 'dev') and how to configure the CI to execute tests when a merge request is opened.

Thanks.

— Reply to this email directly, view it on GitHub https://github.com/hpi-swa/smalltalkCI/issues/614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQCK6FPTU7SIQ7GCXEGG43YFMSE5AVCNFSM6AAAAAA7ST664GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDCNZZGU3DOOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

labordep commented 8 months ago

Thanks @gcotelli, I will take a look :)