-
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (49 loc) · 1.36 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
---
name: ci
on:
pull_request:
push:
branches:
- main
- master
- "releases/*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
#TODO? replace by a charts only ci like https://github.com/helm/chart-testing-action
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
folder:
# - cdviz-db
- charts
- demos
steps:
- uses: actions/checkout@v4
- name: check changed files
uses: tj-actions/changed-files@v45
id: changed-files
with:
files: |
${{ matrix.folder }}/**
- name: log
if: steps.changed-files.outputs.any_changed != 'true'
run: echo "::notice ::no changed files on ${{ matrix.folder }} - skipping"
- uses: jdx/mise-action@v2
if: steps.changed-files.outputs.any_changed == 'true'
- uses: helm/[email protected]
if: steps.changed-files.outputs.any_changed == 'true'
- run: mise install
if: steps.changed-files.outputs.any_changed == 'true'
shell: bash
working-directory: ${{ matrix.folder }}
- run: mise run ci
if: steps.changed-files.outputs.any_changed == 'true'
shell: bash
working-directory: ${{ matrix.folder }}