Skip to content

Commit

Permalink
Fix github actions merge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nocturnalastro committed Feb 8, 2024
1 parent 3a34397 commit 3f39001
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/pre_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3f39001

Please sign in to comment.