From 1de53c9d216301cf060b053febf782fef9e61f25 Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam Date: Tue, 5 Mar 2024 13:22:57 +0530 Subject: [PATCH] run format checker Signed-off-by: Anant Thazhemadam --- .github/workflows/format-check.yml | 8 ++++---- .github/workflows/test-workflow.yml | 11 +++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/test-workflow.yml diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index 4356636..67bddbd 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -26,14 +26,14 @@ on: outputs: formatted: description: "If the specified directory is already formatted or not." - value: "${{ jobs.run-julia-formatter.outputs.formatted }}" + value: "${{ jobs.format-check.outputs.formatted }}" format-diff-patch: description: "A patch consisting of formatting changes which can be applied to comply with format checking. Available only if `outputs.formatted` is `false`" - value: "${{ jobs.run-julia-formatter.outputs.formatting-changes }}" + value: "${{ jobs.format-check.outputs.formatting-changes }}" jobs: - run-julia-formatter: - name: "Run JuliaFormatter" + format-check: + name: "Check Formatting" runs-on: ubuntu outputs: formatted: "${{ steps.check-formatting.outputs.formatted }}" diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml new file mode 100644 index 0000000..c0b187a --- /dev/null +++ b/.github/workflows/test-workflow.yml @@ -0,0 +1,11 @@ +name: "Format Check" + +on: + push: + branches: + - "at/reusable-workflows" + +jobs: + format: + name: "Format Checker" + uses: "./.github/workflows/format-check.yml"