-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.86 KB
/
CI.yaml
File metadata and controls
52 lines (47 loc) · 1.86 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
name: Validate pull request before putting into queue
on:
pull_request:
jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Display info
run: |
pwd
tree -a -I '.git'
git status
- name: Run fast CI (emulated by a short sleep)
run: sleep 1
changed_files:
runs-on: ubuntu-latest # windows-latest || macos-latest
name: Test changed-files
steps:
- uses: actions/checkout@v4
- name: Get all test, doc and src files that have changed
id: changed-files-yaml
uses: tj-actions/changed-files@v44
with:
files_yaml: |
helm:
- '**.md'
- helm/**.yaml
build:
- build.gradle.kts
# Optionally set `files_yaml_from_source_file` to read the YAML from a file. e.g `files_yaml_from_source_file: .github/changed-files.yml`
- name: Run step if helm file(s) change
# NOTE: Ensure all outputs are prefixed by the same key used above e.g. `test_(...)` | `doc_(...)` | `src_(...)` when trying to access the `any_changed` output.
if: steps.changed-files-yaml.outputs.helm_any_changed == 'true'
env:
TEST_ALL_CHANGED_FILES: ${{ steps.changed-files-yaml.outputs.helm_all_changed_files }}
run: |
echo "One or more helm file(s) has changed."
echo "List all the files that have changed: $TEST_ALL_CHANGED_FILES"
- name: Run step if build file(s) change
if: steps.changed-files-yaml.outputs.build_any_changed == 'true'
env:
DOC_ALL_CHANGED_FILES: ${{ steps.changed-files-yaml.outputs.build_all_changed_files }}
run: |
echo "One or more build file(s) has changed."
echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES"