moving formatting to sciml style and updating github actions to reflect #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Format suggestion with JuliaFormatter.jl' | |
description: "Formats your Julia files and suggest changes" | |
runs: | |
using: "composite" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v1 | |
- uses: julia-actions/cache@v1 | |
- name: 'Install JuliaFormatter' | |
run: | | |
julia -e ' | |
using Pkg | |
Pkg.add("JuliaFormatter")' | |
shell: bash | |
- name: 'Format' | |
run: | | |
julia -e ' | |
using JuliaFormatter | |
format(".", SciMLStyle())' | |
shell: bash | |
- name: 'Suggest' | |
uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: JuliaFormatter | |
fail_on_error: true |