Skip to content

Commit

Permalink
fixup! Add very basic README for collector-framework and some tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
nocturnalastro committed Jan 31, 2024
1 parent 73ea209 commit 63d88b7
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions .github/workflows/pre_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ 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
Expand All @@ -46,27 +46,33 @@ jobs:
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true

framework_tests:
name: Run pkg tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
go-version: 1.18.9
# 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

- name: Check out code
uses: actions/checkout@v3
# Optional: working directory, useful for monorepos
working-directory: tgm-collector

- name: Set up ginkgo
working-directory: collector-framework
run: make install-tools
# Optional: golangci-lint command line arguments.
args: --timeout=5m0s

- name: Run package tests
working-directory: collector-framework
run: ginkgo pkg/...
# 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

tgm_tests:
# 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

tests:
name: Run pkg tests
runs-on: ubuntu-latest
steps:
Expand All @@ -79,10 +85,14 @@ jobs:
uses: actions/checkout@v3

- name: Set up ginkgo
working-directory: tgm-collector
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/...

Expand Down

0 comments on commit 63d88b7

Please sign in to comment.