Skip to content

Commit

Permalink
Disable format check on Windows and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Jan 24, 2024
1 parent df4b8b4 commit 34142a7
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,11 @@ jobs:
- run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)'
- uses: julia-actions/cache@v1
- name: Apply JuliaFormatter and check format
if: matrix.os == 'ubuntu-latest'
run: |
using Pkg
Pkg.add("JuliaFormatter")
using JuliaFormatter
is_unchanged = format(".", verbose=true)
if !is_unchanged
error("Code not properly formatted")
end
julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
julia -e 'using JuliaFormatter; !format(".", verbose=true) &&
error("Code not properly formatted")'
shell: julia --color=yes {0}
- name: Build package
uses: julia-actions/julia-buildpkg@v1
Expand Down

0 comments on commit 34142a7

Please sign in to comment.