ci: use git submodules for Chart Actions (#14211)

* Add chart-action submodules

* use local github actions for chart actions

* Run actions checkout for local checkout

* Run lint when PR is edited

* Remove path filter and dummy value

* Fix fetch-depth

* Test chart version bump

* Update maintainer to pass validation

* Update maintainer to pass validation
This commit is contained in:
jawabuu 2021-04-17 19:13:36 +03:00 committed by GitHub
parent 77a9cc7088
commit 61325635da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 12 deletions

@ -0,0 +1 @@
Subproject commit 120944e66390c2534cc1b3c62d7285ba7ff02594

@ -0,0 +1 @@
Subproject commit b0d4458c71155b54fcf33e11dd465dc923550009

View File

@ -2,16 +2,17 @@ name: Lint and Test Charts
on:
pull_request:
paths:
- 'helm/**'
types: [opened, edited, reopened, synchronize]
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: recursive
fetch-depth: 0
- name: Set up Helm
@ -24,7 +25,7 @@ jobs:
python-version: 3.7
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.0.1
uses: ./.github/actions/chart-testing-action
- name: Run chart-testing (list-changed)
id: list-changed

View File

@ -11,9 +11,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: recursive
fetch-depth: 0
- name: Configure Git
@ -27,7 +29,7 @@ jobs:
version: v3.5.4
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.0
uses: ./.github/actions/chart-releaser-action
with:
charts_dir: helm
env:

6
.gitmodules vendored
View File

@ -30,3 +30,9 @@
[submodule ".github/actions/comment-on-pr"]
path = .github/actions/comment-on-pr
url = https://github.com/unsplash/comment-on-pr
[submodule ".github/actions/chart-testing-action"]
path = .github/actions/chart-testing-action
url = https://github.com/helm/chart-testing-action
[submodule ".github/actions/chart-releaser-action"]
path = .github/actions/chart-releaser-action
url = https://github.com/helm/chart-releaser-action

View File

@ -19,10 +19,10 @@ appVersion: "1.0"
description: Apache Superset is a modern, enterprise-ready business intelligence web application
name: superset
maintainers:
- name: Chuan-Yen Chiang
email: cychiang0823@gmail.com
url: https://github.com/cychiang
version: 0.1.0
- name: craig-rueda
email: craig@craigrueda.com
url: https://github.com/craig-rueda
version: 0.1.1
dependencies:
- name: postgresql
version: 10.2.0

View File

@ -372,5 +372,3 @@ nodeSelector: {}
tolerations: []
affinity: {}
dummy: true