We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c956fc commit af9e0ffCopy full SHA for af9e0ff
.github/workflows/Format.yml
@@ -10,9 +10,23 @@ on:
10
11
jobs:
12
format:
13
+ name: "Format Check"
14
runs-on: ubuntu-latest
15
steps:
- - uses: actions/checkout@master
16
- - uses: domluna/JuliaFormatter-action@master
17
- with:
18
- args: -v .
+ - uses: actions/checkout@v3
+ - uses: julia-actions/setup-julia@v1
+ with:
19
+ version: 1
20
+ - name: Install JuliaFormatter and format
21
+ run: |
22
+ using Pkg
23
+ Pkg.add(PackageSpec(name="JuliaFormatter"))
24
+ using JuliaFormatter
25
+ format("."; verbose=true)
26
+ shell: julia --color=yes {0}
27
+ - name: Suggest formatting changes
28
+ uses: reviewdog/action-suggester@v1
29
+ if: github.event_name == 'pull_request'
30
31
+ tool_name: JuliaFormatter
32
+ fail_on_error: true
0 commit comments