-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.1 KB
/
test-and-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test and Release helm-charts
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Setup Helmfile
uses: mamezou-tech/setup-helmfile@v1.2.0
with:
helmfile-version: "v0.150.0"
helm-version: "v3.11.0"
kubectl-version: "1.24.7"
kubectl-release-date: "2022-10-31"
additional-helm-plugins: >-
https://github.com/helm-unittest/helm-unittest
- name: Lint
run: helm lint charts/*/
- name: Test
run: helm unittest --strict charts/*/
- name: Release
if: ${{ github.ref == 'refs/heads/main' }}
uses: helm/chart-releaser-action@v1.5.0
env:
CR_SKIP_EXISTING: "true"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"