File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed
modules/otel-error-tracking Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tofu
2+
3+ on :
4+ push :
5+ paths-ignore :
6+ - ' README.md'
7+ - ' LICENSE'
8+ - ' .gitignore'
9+ branches :
10+ - ' master'
11+ pull_request :
12+ types : [opened, synchronize, reopened, ready_for_review]
13+ paths-ignore :
14+ - ' README.md'
15+ - ' LICENSE'
16+ - ' .gitignore'
17+
18+ jobs :
19+ determine-changed-modules :
20+ if : github.event.pull_request.draft == false
21+ runs-on : ubuntu-latest
22+ outputs :
23+ matrix : ${{ steps.changed-files.outputs.all_changed_files }}
24+ steps :
25+ - uses : actions/checkout@v6
26+ with :
27+ fetch-depth : 0
28+
29+ - name : Get changed files
30+ id : changed-files
31+ uses : tj-actions/changed-files@v47
32+ with :
33+ dir_names : true
34+ dir_names_max_depth : 2
35+ dir_names_exclude_current_dir : true
36+ files : " ./modules/**"
37+ matrix : true
38+
39+ - name : ' Set output in the matrix format'
40+ id : set-output
41+ run : echo "changed_directories=${{ steps.changed-files.outputs.all_changed_files }}" >> "$GITHUB_OUTPUT"
42+
43+ check :
44+ if : github.event.pull_request.draft == false && needs.determine-changed-modules.outputs.all_changed_files != ''
45+ runs-on : ubuntu-latest
46+ strategy :
47+ matrix :
48+ dir : " ${{fromJson(needs.determine-changed-modules.outputs.all_changed_files)}}"
49+ needs :
50+ - determine-changed-modules
51+ steps :
52+ - uses : actions/checkout@v6
53+ - uses : opentofu/setup-opentofu@v1
54+
55+ - name : Check module ${{ matrix.dir }}
56+ working-directory : ${{ matrix.dir }}
57+ run : |
58+ tofu fmt -check
59+ tofu init
60+ tofu validate -no-color
61+
Original file line number Diff line number Diff line change 11terraform {
2+
23 required_providers {
34 datadog = {
45 source = " DataDog/datadog"
You can’t perform that action at this time.
0 commit comments