Skip to content

Commit

Permalink
Update .github/workflows/ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sloede authored Jan 24, 2024
1 parent ba6a16e commit df4b8b4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,16 @@ jobs:
- uses: julia-actions/cache@v1
- name: Apply JuliaFormatter and check format
run: |
julia -e "using Pkg; Pkg.add(\"JuliaFormatter\")"
julia -e 'using JuliaFormatter; !format(".", verbose=true) &&
error("Code not properly formatted")'
using Pkg
Pkg.add("JuliaFormatter")
using JuliaFormatter
is_unchanged = format(".", verbose=true)
if !is_unchanged
error("Code not properly formatted")
end
shell: julia --color=yes {0}
- name: Build package
uses: julia-actions/julia-buildpkg@v1
- name: Run tests
Expand Down

0 comments on commit df4b8b4

Please sign in to comment.