diff --git a/.github/workflows/additional_checks.yml b/.github/workflows/additional_checks.yml index cf0547789af..891b7f1816d 100644 --- a/.github/workflows/additional_checks.yml +++ b/.github/workflows/additional_checks.yml @@ -26,6 +26,8 @@ jobs: runs-on: ubuntu-22.04 steps: + - name: Collect Workflow Telemetry + uses: runforesight/workflow-telemetry-action@v1 - name: Checkout repository contents uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 with: diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index 5726eab6560..a079a457ac7 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -17,9 +17,31 @@ jobs: name: Formatting Check runs-on: ubuntu-latest steps: + - name: Collect Workflow Telemetry + uses: runforesight/workflow-telemetry-action@v1 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 - - name: Run clang-format style check for C/C++/Protobuf programs. - uses: jidicula/clang-format-action@v4.11.0 + + - uses: DoozyX/clang-format-lint-action@v0.16.2 with: - clang-format-version: '15' - check-path: . + source: '.' + clangFormatVersion: 15 + inplace: True + #- name: Run clang-format style check for C/C++/Protobuf programs. + #uses: jidicula/clang-format-action@v4.11.0 + #with: + #clang-format-version: '15' + #check-path: . + - name: Verify Changed files + uses: tj-actions/verify-changed-files@v16 + id: verify-changed-files + + - name: List all changed files tracked and untracked files + run: | + echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}" + + + - uses: actions/upload-artifact@v3 + with: + name: my-artifact + path: ${{ steps.verify-changed-files.outputs.changed_files }}" + diff --git a/.github/workflows/gcc.yml b/.github/workflows/gcc.yml index c8a6eabd009..06e20041dc4 100644 --- a/.github/workflows/gcc.yml +++ b/.github/workflows/gcc.yml @@ -35,6 +35,8 @@ jobs: fail-fast: false steps: + - name: Collect Workflow Telemetry + uses: runforesight/workflow-telemetry-action@v1 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 - name: Get dependencies run: | diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 86d6801989f..61818bd83c4 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -30,6 +30,8 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Collect Workflow Telemetry + uses: runforesight/workflow-telemetry-action@v1 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 - name: Set up Python diff --git a/.github/workflows/python-code-quality.yml b/.github/workflows/python-code-quality.yml index 58907de93b0..c62812fccb8 100644 --- a/.github/workflows/python-code-quality.yml +++ b/.github/workflows/python-code-quality.yml @@ -35,6 +35,8 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Collect Workflow Telemetry + uses: runforesight/workflow-telemetry-action@v1 - name: Versions run: | echo OS: ${{ matrix.os }} diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 18f6c0e2ba5..dee4f084c95 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -22,6 +22,8 @@ jobs: runs-on: ubuntu-latest steps: + - name: Collect Workflow Telemetry + uses: runforesight/workflow-telemetry-action@v1 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 - name: Lint code base uses: github/super-linter@v5 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index d5c1d48cda1..f45482b00a9 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -38,6 +38,8 @@ jobs: fail-fast: false steps: + - name: Collect Workflow Telemetry + uses: runforesight/workflow-telemetry-action@v1 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 - name: Get dependencies diff --git a/display/d.erase/main.c b/display/d.erase/main.c index e6e8bb8e724..b9f4c5ba472 100644 --- a/display/d.erase/main.c +++ b/display/d.erase/main.c @@ -19,14 +19,14 @@ int main(int argc, char *argv[]) { struct Option *color; - struct Flag *eraseframe; + struct Flag * eraseframe; struct GModule *module; G_gisinit(argv[0]); module = G_define_module(); G_add_keyword(_("display")); - G_add_keyword(_("graphics")); + G_add_keyword(_("graphics")) ; G_add_keyword(_("monitors")); module->description = _("Erases the contents of the active graphics " "display frame with user defined color."); @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) color = G_define_standard_option(G_OPT_C); color->key = "bgcolor"; color->label = _("Background color"); - color->answer = DEFAULT_BG_COLOR; + color-> answer = DEFAULT_BG_COLOR; eraseframe = G_define_flag(); eraseframe->key = 'f'; @@ -43,11 +43,11 @@ int main(int argc, char *argv[]) if (G_parser(argc, argv)) exit(EXIT_FAILURE); - D_open_driver(); + D_open_driver(); D_setup_unity(0); - D_erase(color->answer); + D_erase(color->answer); if (eraseframe->answer) D__erase(); diff --git a/display/d.extract/extract.c b/display/d.extract/extract.c index aa543ff1a69..994ce086b01 100644 --- a/display/d.extract/extract.c +++ b/display/d.extract/extract.c @@ -13,7 +13,7 @@ #define M_START 1 #define M_ADD 2 #define M_DEL 3 -#define M_END 4 + #define M_END 4 int display(struct Map_info *Map, struct boxlist *List, const struct color_rgb *color); @@ -27,7 +27,7 @@ int extract(struct Map_info *In, struct Map_info *Out, int type, struct boxlist *List, *CList; struct bound_box box; struct line_pnts *Points; - struct line_cats *Cats; + struct line_cats *Cats; Points = Vect_new_line_struct(); Cats = Vect_new_cats_struct(); @@ -45,12 +45,12 @@ int extract(struct Map_info *In, struct Map_info *Out, int type, G_message( _(" - M: draw box with middle mouse button to remove from display")); G_message(_(" - R: quit and save selected vectors to new map\n")); - while (1) { + while ( 1) { G_message(_("L: add M: remove R: quit and save\n")); if (mode == M_START) { R_get_location_with_pointer(&screen_x, &screen_y, &button); - cur_screen_x = screen_x; + cur_screen_x = screen_x; cur_screen_y = screen_y; } else { @@ -58,7 +58,7 @@ int extract(struct Map_info *In, struct Map_info *Out, int type, &screen_y, &button); x1 = D_d_to_u_col((double)(cur_screen_x)); y1 = D_d_to_u_row((double)(cur_screen_y)); - x2 = D_d_to_u_col((double)(screen_x)); + x2 = D_d_to_u_col((double)(screen_x)); y2 = D_d_to_u_row((double)(screen_y)); if (x1 < x2) { @@ -83,7 +83,7 @@ int extract(struct Map_info *In, struct Map_info *Out, int type, /* TODO: check if line really intersects box, not only box intersects * box */ - switch (button) { + switch (button) { case 1: if (mode == M_START) { mode = M_ADD;