Skip to content

Commit 5c12110

Browse files
committed
try out new format action
1 parent 454162c commit 5c12110

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/Format.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
name: Format suggestions
1+
name: Formatter
22

33
on: [pull_request]
44

55
jobs:
6-
code-style:
6+
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: julia-actions/julia-format@v3
9+
- uses: actions/checkout@v4
10+
- uses: julia-actions/cache@v2
11+
- name: Install JuliaFormatter and format
12+
run: |
13+
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
14+
julia -e '
15+
using JuliaFormatter
16+
result = format(".")
17+
if result == false
18+
error("Formatting failed")
19+
end
20+
'

0 commit comments

Comments
 (0)