Skip to content

Commit 5213792

Browse files
Antoine TANZILLITailzip
authored andcommitted
chore(ci): add ci workflow
1 parent fa36f2e commit 5213792

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/lint-test.yml

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
10+
uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Set up Helm
15+
uses: azure/setup-helm@v1
16+
with:
17+
version: v3.4.0
18+
19+
- uses: actions/setup-python@v2
20+
with:
21+
python-version: 3.8
22+
23+
- name: Set up chart-testing
24+
uses: helm/[email protected]
25+
26+
- name: Run chart-testing (list-changed)
27+
id: list-changed
28+
run: |
29+
changed=$(ct list-changed)
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
36+
37+
- name: Create kind cluster
38+
uses: helm/[email protected]
39+
if: steps.list-changed.outputs.changed == 'true'
40+
41+
- name: Run chart-testing (install)
42+
run: ct install

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ jobs:
2828
uses: helm/[email protected]
2929
env:
3030
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
31+
with:
32+
charts_repo_url: https://tailzip.github.io/dnscrypt-proxy-helm-chart/

0 commit comments

Comments
 (0)