Skip to content

Commit

Permalink
HDDS-11540. Use git submodules for Chart Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dnskr committed Oct 6, 2024
1 parent 5e965d0 commit 8b22d76
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/actions/chart-testing-action
Submodule chart-testing-action added at 5aa1c6
1 change: 1 addition & 0 deletions .github/actions/kind-action
Submodule kind-action added at 5d6664
10 changes: 6 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
submodules: recursive

- name: Set up Helm
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
uses: azure/[email protected]

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Set up chart-testing
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
uses: ./.github/actions/chart-testing-action

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -36,7 +38,7 @@ jobs:

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
uses: ./.github/actions/kind-action

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
Expand Down
24 changes: 24 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[submodule ".github/actions/chart-testing-action"]
path = .github/actions/chart-testing-action
url = https://github.com/helm/chart-testing-action
branch = commit/e6669bcd63d7cb57cb4380c33043eebe5d111992
[submodule ".github/actions/kind-action"]
path = .github/actions/kind-action
url = https://github.com/helm/kind-action
branch = commit/0025e74a8c7512023d06dc019c617aa3cf561fde

0 comments on commit 8b22d76

Please sign in to comment.