Skip to content
Snippets Groups Projects
Select Git revision
  • test-lfs-concept
  • master default
  • 71-clang-format-configuration-compatibility-with-colcon-test
  • rtde
  • tmp-gpg-key-workaround-2
  • tmp-gpg-key-workaround
  • 68-git-lfs-error-in-ddeploy-job
  • split-build-and-test
  • 66-jazzy-support
  • 62-deploy-jobs-do-not-pull-files-from-lfs-manual-lfs-pull
  • 62-deploy-jobs-do-not-pull-files-from-lfs-custom-docker-image
  • py3-without-industrial-ci-test
  • 58-add-yolo-pip-package-support
  • 55-collision-between-test-jobs-due-to-dds-autodiscovery-ros2
  • 52-ddeploy-job-failing-when-enforcing-labels-alt-quick-dind-test
  • 48-python3_syntax
  • 46-default-docker-image-name-too-long
  • 45-double-pipeline-triggered-if-merge-request-has-melodic-branch-name
  • 40-repo-is-ros-testing
  • test-badges
20 results

.yamllint

Blame
  • gitlab-ci-golang.yml 29.36 KiB
    # =========================================================================================
    # Copyright (C) 2021 Orange & contributors
    #
    # This program is free software; you can redistribute it and/or modify it under the terms
    # of the GNU Lesser General Public License as published by the Free Software Foundation;
    # either version 3 of the License, or (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    # without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    # See the GNU Lesser General Public License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public License along with this
    # program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
    # Floor, Boston, MA  02110-1301, USA.
    # =========================================================================================
    # default workflow rules: Merge Request pipelines
    spec:
      inputs:
        image:
          description: The Docker image used to run Go (build+test or build only) - **set the version required by your project**
          default: registry.hub.docker.com/library/golang:bookworm
        project-dir:
          description: Go project root directory
          default: .
        goproxy:
          description: URL of Go module proxy (see [Go env](https://golang.org/cmd/go/#hdr-Environment_variables))
          default: ''
        test-image:
          description: Specific Docker image used to run Go tests (as a separate job)
          default: ''
        generate-modules:
          description: "Space separated list of Go code generator modules (ex: `stringer mockery`)"
          default: ''
        build-flags:
          description: Flags used by the [go build command](https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies)
          default: -mod=readonly
        build-mode:
          description: The template build mode (accepted values are `application`, `modules` and `auto`)
          options:
          - auto
          - application
          - modules
          default: auto
        build-linker-flags:
          description: Linker flags used by the [go build command](https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies) `-ldflags`
          default: -s -w
        build-packages:
          description: Packages to build with the [go build command](https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies)
          default: ./...
        target-os:
          description: |-
            The `$GOOS` target [see available values](https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63)
    
            Fallbacks to default `$GOOS` from the Go Docker image
          default: ''
        target-arch:
          description: |-
            The `$GOARCH` target [see available values](https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63)
    
            Fallbacks to default `$GOARCH` from the Go Docker image
          default: ''
        test-flags:
          description: Flags used by the [go test command](https://pkg.go.dev/cmd/go#hdr-Test_packages)
          default: -mod=readonly -v -race
        test-packages:
          description: Packages to test with the [go test command](https://pkg.go.dev/cmd/go#hdr-Test_packages)
          default: ./...
        list-args:
          description: Arguments used by the list command
          default: list -u -m -mod=readonly -json all