Commit d4b1a10
chore(ci): run lint in a separate build before running the tests (#2876)
* chore: run lint in a separate build before running the tests
* fix: lint work dir
* Revert "fix: lint work dir"
This reverts commit 4bab0fd.
* Revert "chore: run lint in a separate build before running the tests"
This reverts commit c9c63bd.
* chore: detect modified files and select which module to run the tests based on that
* fix: read env var properly
* fix: simplify
* fix: single quotes
* chore: remove job
* fix: proper all_modified_files quotes
* chore: print out modules to run
* fix: do not send an array with all modules, but a comma-separated list instead
* fix: do not prepend the root_dir for the modules
* chore: proper runner definition
* fix: use runner in the right place
* chore: separate lint to a different workflow
* fix: use fromJson
* fix: proper jobs chain
* fix: no need to lint twice
* fix: remove non-existing input
* fix: sanitise path
* chore: only run the reaper if the core module is modified
* revert: simple lint
* Revert "revert: simple lint"
This reverts commit e30d9a0.
* revet: remove lint
* Revert "revet: remove lint"
This reverts commit d66f266.
* chore: try with input platform
* fix: forgotten platform
* fix: pass a string to the reusable workflow
* fix: remove missing parenthesis
* fix: proper input value as string
* fix: order properly
* chore: simplify merging scripts
* fix: proper array syntax
* fix: outputs are consumed by downstream jobs that needs the producer
* fix: remove extra element
* chore: detemine platform in downstream job
* fix: read env properly
* chore: define runner in a previos step
* fix: proper output format
* Revert "fix: proper output format"
This reverts commit 9a3f6f9.
* Revert "chore: define runner in a previos step"
This reverts commit c7476de.
* chore: define matrix for the downstream job
* fix: try with string
* fix: use fromJSON
* fix: items
* chore: default as string
* chore: pass platforms in the parent workflow
* fix: single platforms must follow the array-instring format
* chore: exclude certain locations from the root dir
* fix: use jq to get modules count
* chore: do not run sonarcloud for zero modules
* chore: separate concerns
* chore: format variable name
* chore: no need to generate the ci.yml anymore
* chore: merge lint and test workflow files again
It will create a nicer UI render
* fix: missing lint job in workflow
* chore: run lint first
* fix: update name
* fix: pin the action commit
Co-authored-by: Victor Martinez <[email protected]>
* chore: matrix.platform
* chore: run lint stage before the test one
* chore: no need to read modulegen/_template in dependabot
* chore: scripts is not excluded
Editing the changed-modules script needs to run all
* chore: exit on error, unset variables, print commands, fail on pipe errors
* chore: remove verbosity in golangci-lint in the GH workflow
* chore: use pinned version with 3 digits
* chore: bump golangci-lint version to match makefile's
* chore: omit default value for continue-on-error
* chore: simplify removing the continue-on-error input
* chore: bump golangci-lint GH action version
* chore: do not run mod verify on new GH workers
* fix: do not fail-fast modules
* chore: do not skip cache for golangci-lint GH action
---------
Co-authored-by: Victor Martinez <[email protected]>
Co-authored-by: Steven Hartland <[email protected]>1 parent 0d99308 commit d4b1a10
File tree
14 files changed
+256
-381
lines changed- .github
- workflows
- modulegen
- _template
- internal
- workflow
- scripts
14 files changed
+256
-381
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
| 15 | + | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
| |||
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 26 | | |
36 | 27 | | |
37 | 28 | | |
| |||
45 | 36 | | |
46 | 37 | | |
47 | 38 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 39 | + | |
| 40 | + | |
51 | 41 | | |
52 | 42 | | |
53 | 43 | | |
54 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
| |||
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
63 | | - | |
| 57 | + | |
64 | 58 | | |
65 | 59 | | |
66 | | - | |
| 60 | + | |
67 | 61 | | |
68 | 62 | | |
69 | 63 | | |
70 | 64 | | |
71 | 65 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 66 | | |
107 | 67 | | |
108 | 68 | | |
| |||
118 | 78 | | |
119 | 79 | | |
120 | 80 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | 81 | | |
127 | 82 | | |
128 | 83 | | |
| |||
135 | 90 | | |
136 | 91 | | |
137 | 92 | | |
138 | | - | |
| 93 | + | |
139 | 94 | | |
140 | 95 | | |
141 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 7 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 8 | | |
21 | 9 | | |
22 | 10 | | |
23 | 11 | | |
24 | 12 | | |
25 | 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 | + | |
26 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
27 | 60 | | |
| 61 | + | |
| 62 | + | |
28 | 63 | | |
29 | 64 | | |
30 | | - | |
| 65 | + | |
31 | 66 | | |
32 | 67 | | |
33 | 68 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 69 | + | |
| 70 | + | |
37 | 71 | | |
38 | | - | |
39 | 72 | | |
40 | 73 | | |
41 | 74 | | |
42 | 75 | | |
43 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
44 | 82 | | |
45 | 83 | | |
46 | 84 | | |
47 | 85 | | |
48 | 86 | | |
49 | 87 | | |
50 | 88 | | |
51 | | - | |
52 | | - | |
| 89 | + | |
53 | 90 | | |
54 | 91 | | |
55 | | - | |
56 | 92 | | |
57 | 93 | | |
58 | 94 | | |
59 | 95 | | |
60 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
61 | 102 | | |
62 | 103 | | |
63 | 104 | | |
64 | 105 | | |
65 | | - | |
66 | 106 | | |
67 | 107 | | |
68 | 108 | | |
69 | | - | |
70 | | - | |
| 109 | + | |
71 | 110 | | |
72 | 111 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 112 | | |
122 | 113 | | |
123 | 114 | | |
124 | 115 | | |
125 | 116 | | |
126 | 117 | | |
127 | | - | |
128 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
129 | 122 | | |
130 | 123 | | |
131 | 124 | | |
| |||
0 commit comments