Skip to content

Commit af9e0ff

Browse files
authored
fix: format action (#85)
1 parent 4c956fc commit af9e0ff

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/Format.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,23 @@ on:
1010

1111
jobs:
1212
format:
13+
name: "Format Check"
1314
runs-on: ubuntu-latest
1415
steps:
15-
- uses: actions/checkout@master
16-
- uses: domluna/JuliaFormatter-action@master
17-
with:
18-
args: -v .
16+
- uses: actions/checkout@v3
17+
- uses: julia-actions/setup-julia@v1
18+
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+
with:
31+
tool_name: JuliaFormatter
32+
fail_on_error: true

0 commit comments

Comments
 (0)