-
-
Notifications
You must be signed in to change notification settings - Fork 17
55 lines (48 loc) · 1.21 KB
/
ci.yml
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
48
49
50
51
52
53
54
55
# yamllint disable rule:document-start
# https://docs.github.com/actions
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.list-changed.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config config.yaml)
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
test:
name: Test
needs:
- prepare
uses: ./.github/workflows/test.yml
with:
action-matrix: '["lint", "install", "install --upgrade"]'
contains-changes: ${{ needs.prepare.outputs.changed == 'true' }}
release:
name: Release
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/release.yml
permissions:
contents: write
packages: write
id-token: write
secrets:
GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }}