Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: format-check
on:
push:
branches:
- master
- release-*
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- uses: actions/checkout@v4
- name: Format check
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
using JuliaFormatter
format(".", verbose=true)
out = String(read(Cmd(`git diff`)))
if isempty(out)
exit(0)
end
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ makedocs(; sitename = "MathOptConflictSolver.jl documentation")
deploydocs(;
repo = "github.com/jump-dev/MathOptConflictSolver.jl.git",
push_preview = true,
)
)
2 changes: 1 addition & 1 deletion test/MathOptConflictSolver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ end

end # module TestMathOptConflictSolver

TestMathOptConflictSolver.runtests()
TestMathOptConflictSolver.runtests()
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ using Test
include(file)
end
end
end
end
Loading