File tree Expand file tree Collapse file tree 1 file changed +4
-35
lines changed Expand file tree Collapse file tree 1 file changed +4
-35
lines changed Original file line number Diff line number Diff line change 1
- name : format-check
1
+ name : " Format Check "
2
2
3
3
on :
4
4
push :
8
8
pull_request :
9
9
10
10
jobs :
11
- build :
12
- runs-on : ${{ matrix.os }}
13
- strategy :
14
- matrix :
15
- julia-version : [1]
16
- julia-arch : [x86]
17
- os : [ubuntu-latest]
18
- steps :
19
- - uses : julia-actions/setup-julia@latest
20
- with :
21
- version : ${{ matrix.julia-version }}
22
-
23
- - uses : actions/checkout@v4
24
- - name : Install JuliaFormatter and format
25
- # This will use the latest version by default but you can set the version like so:
26
- #
27
- # julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
28
- #
29
- # The last version before the SciML style changed significantly is
30
- # julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version = v"1.0.32"))'
31
- run : |
32
- julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.45"))'
33
- julia -e 'using JuliaFormatter; format(".", verbose = true)'
34
- - name : Format check
35
- run : |
36
- julia -e '
37
- out = Cmd(`git diff --name-only`) |> read |> String
38
- if out == ""
39
- exit(0)
40
- else
41
- @error "Some files have not been formatted !!!"
42
- write(stdout, out)
43
- exit(1)
44
- end'
11
+ format-check :
12
+ name : " Format Check"
13
+ uses : " SciML/.github/.github/workflows/format-check.yml@v1"
You can’t perform that action at this time.
0 commit comments