Skip to content

Commit

Permalink
chore: optionally disable tests on cd and mute mongo tests (#318)
Browse files Browse the repository at this point in the history
* chore: optionally disable tests on cd

* chore: mute dbaas mongo tests
  • Loading branch information
avirtopeanu-ionos authored Jul 14, 2023
1 parent 26fbe71 commit 4ee0369
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
runTests:
description: 'Run tests?'
required: true
default: 'yes'

jobs:
goreleaser:
Expand All @@ -28,6 +34,7 @@ jobs:
IONOS_USERNAME: ${{ secrets.IONOS_USERNAME_V5 }}
IONOS_PASSWORD: ${{ secrets.IONOS_PASSWORD_V6 }}
run: make test
if: github.event_name == 'push' || github.event.inputs.runTests == 'yes'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DOCS_OUT?=$(shell pwd)/docs/subcommands
# Want to test verbosely? (i.e. see what test is failing?) Run like:
# make test TEST_FLAGS="-v [optionally other flags]"

TEST_DIRS := $(shell go list ./... | grep -v /commands/container-registry) # All pkgs except containter-registry
TEST_DIRS := $(shell go list ./... | grep -v /commands/container-registry | grep -v /commands/dbaas/mongo) # All commands except ...
TEST_FLAGS := "-cover"
.PHONY: utest
utest:
Expand Down

0 comments on commit 4ee0369

Please sign in to comment.