Skip to content

Commit

Permalink
seperated test into individual files due to overlapping file names fr…
Browse files Browse the repository at this point in the history
…om upload-action causing failures
  • Loading branch information
garethahealy committed Nov 27, 2024
1 parent b90675c commit e2dbbf1
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 67 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ jobs:
id: set-variables
env:
BUILD_PLATFORMS: ${{ inputs.BUILD_PLATFORMS }}
CHECKOUT_CODE: ${{ inputs.CHECKOUT_CODE }}
run: |
echo "repository_name=$(basename $GITHUB_REPOSITORY)" >> $GITHUB_OUTPUT
echo "repository_name=$(basename ${{ env.CHECKOUT_CODE }})" >> $GITHUB_OUTPUT
echo "bin_dir=$(pwd)/bin" >> $GITHUB_OUTPUT
# Create Distribution Matrix
Expand Down Expand Up @@ -492,7 +493,7 @@ jobs:
shell: bash
run: |
# Render Helm Chart
make helmchart VERSION=${{ env.HELM_RELEASE_VERSION }} IMG=${{ env.OPERATOR_IMAGE_REPOSITORY }}:${{ env.OPERATOR_VERSION }}
make helmchart OPERATOR_NAME=${{ env.REPOSITORY_NAME }} VERSION=${{ env.HELM_RELEASE_VERSION }} IMG=${{ env.OPERATOR_IMAGE_REPOSITORY }}:${{ env.OPERATOR_VERSION }}
# Package Helm Chart
mkdir dist
Expand Down
65 changes: 0 additions & 65 deletions .github/workflows/pr.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/test-cert-utils-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Testing cert-utils-operator
on:
pull_request:
schedule:
- cron: '0 1 * * 1'

# Declare default permissions as read only.
permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
cert-utils-operator-workflow:
name: Test PR shared-operator-workflow for cert-utils-operator
uses: ./.github/workflows/pr-operator.yml
with:
RUN_UNIT_TESTS: true
RUN_INTEGRATION_TESTS: false
RUN_HELMCHART_TEST: false #todo
GO_VERSION: ~1.19
CHECKOUT_CODE: "redhat-cop/cert-utils-operator"
24 changes: 24 additions & 0 deletions .github/workflows/test-group-sync-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Testing group-sync-operator
on:
pull_request:
schedule:
- cron: '0 1 * * 1'

# Declare default permissions as read only.
permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
group-sync-operator-workflow:
name: Test PR shared-operator-workflow for group-sync-operator
uses: ./.github/workflows/pr-operator.yml
with:
GO_VERSION: ~1.21
RUN_UNIT_TESTS: true
RUN_INTEGRATION_TESTS: false
RUN_HELMCHART_TEST: false
OPERATOR_SDK_VERSION: v1.25.2
CHECKOUT_CODE: "redhat-cop/group-sync-operator"
24 changes: 24 additions & 0 deletions .github/workflows/test-namespace-configuration-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Testing namespace-configuration-operator
on:
pull_request:
schedule:
- cron: '0 1 * * 1'

# Declare default permissions as read only.
permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
namespace-configuration-operator-workflow:
name: Test PR shared-operator-workflow for namespace-configuration-operator
uses: ./.github/workflows/pr-operator.yml
with:
RUN_UNIT_TESTS: true
RUN_INTEGRATION_TESTS: true
RUN_HELMCHART_TEST: false #todo
GO_VERSION: ~1.21
OPERATOR_SDK_VERSION: v1.31.0
CHECKOUT_CODE: "redhat-cop/namespace-configuration-operator"
24 changes: 24 additions & 0 deletions .github/workflows/test-patch-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Testing patch-operator
on:
pull_request:
schedule:
- cron: '0 1 * * 1'

# Declare default permissions as read only.
permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
patch-operator-workflow:
name: Test PR shared-operator-workflow for patch-operator
uses: ./.github/workflows/pr-operator.yml
with:
RUN_UNIT_TESTS: true
RUN_INTEGRATION_TESTS: false
RUN_HELMCHART_TEST: false #todo
GO_VERSION: ~1.21
OPERATOR_SDK_VERSION: v1.23.0
CHECKOUT_CODE: "redhat-cop/patch-operator"
24 changes: 24 additions & 0 deletions .github/workflows/test-vault-config-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Testing vault-config-operator
on:
pull_request:
schedule:
- cron: '0 1 * * 1'

# Declare default permissions as read only.
permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
vault-config-operator-workflow:
name: Test PR shared-operator-workflow for vault-config-operator
uses: ./.github/workflows/pr-operator.yml
with:
RUN_UNIT_TESTS: true
RUN_INTEGRATION_TESTS: true
RUN_HELMCHART_TEST: false #todo
GO_VERSION: ~1.21
OPERATOR_SDK_VERSION: v1.25.3
CHECKOUT_CODE: "redhat-cop/vault-config-operator"

0 comments on commit e2dbbf1

Please sign in to comment.