-
-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (56 loc) · 1.65 KB
/
ci.yml
File metadata and controls
60 lines (56 loc) · 1.65 KB
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
56
57
58
59
60
---
name: ci
on:
push:
branches-ignore:
- "release-plz-*"
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
- cdviz-grafana
- charts
- demos
steps:
- uses: actions/checkout@v6
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- uses: docker/setup-buildx-action@v3
- name: check changed files
uses: tj-actions/changed-files@v47
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@v4
if: steps.changed-files.outputs.any_changed == 'true'
with:
version: 2026.3.10
install: false
- uses: helm/[email protected]
if: (steps.changed-files.outputs.any_changed == 'true' && matrix.folder != 'cdviz-grafana')
# - run: mise install
# if: steps.changed-files.outputs.any_changed == 'true'
# shell: bash
# working-directory: ${{ matrix.folder }}
- run: |
mise run '//${{ matrix.folder }}:ci'
if: steps.changed-files.outputs.any_changed == 'true'
shell: bash