Skip to content

Commit 1fede0f

Browse files
committed
ci: update workflows
1 parent c3f782c commit 1fede0f

6 files changed

Lines changed: 75 additions & 104 deletions

File tree

File renamed without changes.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Lint and Test Charts
2+
3+
on: pull_request
4+
5+
jobs:
6+
lint-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Code
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Set up Helm
15+
uses: azure/setup-helm@v3.5
16+
with:
17+
version: v3.9.2
18+
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: 3.7
22+
23+
- name: Set up chart-testing
24+
uses: helm/chart-testing-action@v2.4.0
25+
26+
- name: Run chart-testing (list-changed)
27+
id: list-changed
28+
run: |
29+
changed=$(ct list-changed --config .github/linters/ct.yaml)
30+
if [[ -n "$changed" ]]; then
31+
echo "::set-output name=changed::true"
32+
fi
33+
34+
- name: Run chart-testing (lint)
35+
run: ct lint --config .github/ct.yaml
36+
37+
- name: Create kind cluster
38+
uses: helm/kind-action@v1.5.0
39+
if: steps.list-changed.outputs.changed == 'true'
40+
41+
- name: Run chart-testing (install)
42+
run: ct install --config .github/linters/ct.yaml
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release Charts
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
permissions:
11+
contents: write
12+
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Configure Git
21+
run: |
22+
git config user.name "$GITHUB_ACTOR"
23+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
24+
25+
- name: Install Helm
26+
uses: azure/setup-helm@v3.5
27+
with:
28+
version: v3.9.2
29+
30+
- name: Run chart-releaser
31+
uses: helm/chart-releaser-action@v1.5.0
32+
env:
33+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/chart-testing.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/lint-and-test.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/qa.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)