-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from QJoly/common-0.2.0
common: Added support to renovate
- Loading branch information
Showing
4 changed files
with
33 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,53 @@ | ||
--- | ||
name: Testing charts | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!main' | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- synchronize | ||
- edited | ||
- reopened | ||
|
||
jobs: | ||
testing: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install yamllint | ||
run: pip install yamllint | ||
|
||
- name: Lint YAML files | ||
run: yamllint . | ||
|
||
test-charts: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python | ||
uses: actions/[email protected] | ||
|
||
- uses: azure/setup-helm@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get changed files in the charts folder | ||
id: changed-files-specific | ||
uses: tj-actions/changed-files@v36 | ||
uses: tj-actions/changed-files@v37 | ||
with: | ||
files: charts | ||
|
||
- name: Create k8s Kind Cluster | ||
if: steps.changed-files-specific.outputs.any_changed == 'true' | ||
uses: helm/kind-action@v1.5.0 | ||
uses: helm/kind-action@v1.7.0 | ||
|
||
- name: Install kubectl | ||
if: steps.changed-files-specific.outputs.any_changed == 'true' | ||
|
@@ -38,9 +56,9 @@ jobs: | |
- name: Run lint for any chart concerned by the commit | ||
if: steps.changed-files-specific.outputs.any_changed == 'true' | ||
run: | | ||
.github/workflows/lint_modified_charts.sh ${{ steps.changed-files-specific.outputs.all_changed_files }} | ||
.github/workflows/lint_modified_charts.sh ${{ steps.changed-files-specific.outputs.all_changed_files }} | ||
- name: Run test for any chart concerned by the commit | ||
if: steps.changed-files-specific.outputs.any_changed == 'true' | ||
run: | | ||
.github/workflows/deploy_modified_charts.sh ${{ steps.changed-files-specific.outputs.all_changed_files }} | ||
.github/workflows/deploy_modified_charts.sh ${{ steps.changed-files-specific.outputs.all_changed_files }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ maintainers: | |
- name: QJOLY | ||
email: [email protected] | ||
name: common | ||
version: v0.1.0 | ||
version: v0.2.0 | ||
appVersion: "0" | ||
kubeVersion: ">= 1.18" | ||
home: https://github.com/RubxKube/common-charts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters