-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MOD] gha workflows by using IMIO/gha
- Loading branch information
1 parent
e7a8a2c
commit af46ce4
Showing
3 changed files
with
32 additions
and
52 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: Lint and Test Charts on PR | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Lint and Test Charts | ||
uses: IMIO/gha/[email protected] | ||
with: | ||
HELM_RELEASE: plausible-analytics | ||
HELM_NAMESPACE: plausible-analytics | ||
|
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,37 +1,16 @@ | ||
--- | ||
name: Lint and Test Charts | ||
|
||
on: [pull_request, push, workflow_dispatch] | ||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
runs-on: | ||
group: self-hosted | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Lint and Test Charts | ||
uses: IMIO/gha/helm-test-notify@v3.9.2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.12.3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (lint) | ||
run: ct lint --chart-dirs . --charts . --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (install) | ||
# run: ct install --chart-dirs . --charts . --target-branch ${{ github.event.repository.default_branch }} | ||
# can't use it until https://github.com/helm/chart-testing/issues/310 is resolved | ||
run: helm install plausible-analytics . -f values.yaml --namespace plausible-analytics --create-namespace | ||
HELM_RELEASE: plausible-analytics | ||
HELM_NAMESPACE: plausible-analytics | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.COMMON_MATTERMOST_WEBHOOK_URL }} |