From ae25dfd4527085efd9412df9b13652e4264e7665 Mon Sep 17 00:00:00 2001 From: Michele Costa Date: Wed, 31 Jan 2024 10:24:42 +0000 Subject: [PATCH] Fix github actions merge workflow --- .github/workflows/pre_main.yaml | 37 +++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre_main.yaml b/.github/workflows/pre_main.yaml index 8609747b..c6263d5f 100644 --- a/.github/workflows/pre_main.yaml +++ b/.github/workflows/pre_main.yaml @@ -28,7 +28,33 @@ jobs: version: v1.52.2 # Optional: working directory, useful for monorepos - # working-directory: somedir + working-directory: collector-framework + + # Optional: golangci-lint command line arguments. + args: --timeout=5m0s + + # Optional: show only new issues if it's a pull request. The default value is `false`. + # only-new-issues: true + + # Optional: if set to true then the all caching functionality will be complete disabled, + # takes precedence over all other caching options. + # skip-cache: true + + # Optional: if set to true then the action don't cache or restore ~/go/pkg. + # skip-pkg-cache: true + + # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. + # skip-build-cache: true + + + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version + version: v1.52.2 + + # Optional: working directory, useful for monorepos + working-directory: tgm-collector # Optional: golangci-lint command line arguments. args: --timeout=5m0s @@ -59,11 +85,18 @@ jobs: uses: actions/checkout@v3 - name: Set up ginkgo + working-directory: collector-framework run: make install-tools - - name: Run package tests + - name: Run collector-framework package tests + working-directory: collector-framework run: ginkgo pkg/... + - name: Run tgm-collector package tests + working-directory: tgm-collector + run: ginkgo pkg/... + + yamllint: name: Lint YAML files runs-on: ubuntu-latest