Skip to content

Update Tests to use latest versions #1

Update Tests to use latest versions

Update Tests to use latest versions #1

Workflow file for this run

name: "Reusable Format PR Workflow"
on:
workflow_call:
inputs:
directory:
description: "The directory on which JuliaFormatter needs to be run"
default: "."
required: false
type: string
julia-version:
description: "Julia version"
default: "1"
required: false
type: string
juliaformatter-version:
description: "Version of JuliaFormatter to use"
default: "1"
required: false
type: string
concurrent-jobs:
description: "Run jobs concurrently"
default: false
required: false
type: boolean
cancel-in-progress:
description: "Cancel jobs in-progress in favor of a new one in the same concurrency group"
default: true
required: false
type: boolean
jobs:
check-formatting:
name: "Check Formatting"
uses: "JuliaActions/workflows/FormatCheck.yml@main"

Check failure on line 35 in .github/workflows/FormatSuggest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/FormatSuggest.yml

Invalid workflow file

invalid value workflow reference: references to workflows must be rooted in '.github/workflows'
with:
directory: "${{ inputs.directory }}"
julia-version: "${{ inputs.julia-version }}"
juliaformatter-version: "${{ inputs.juliaformatter-version }}"
concurrent-jobs: "${{ inputs.concurrent-jobs }}"
cancel-in-progress: "${{ inputs.cancel-in-progress }}"
comment-formatting-suggestions:
name: "Comment Formatting Suggestions on PR"
needs: check-formatting
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Apply formatting changes"
run: |
echo "$(cat <<'END_FORMATTING_DIFF'
${{ needs.check-formatting.outputs.format-diff-patch }}
END_FORMATTING_DIFF
)" | git apply
- uses: reviewdog/action-suggester@v1
with:
tool_name: JuliaFormatter
fail_on_error: true
filter_mode: added