Skip to content

Prep for 1.0.1 and fix compat bounds (#438) #113

Prep for 1.0.1 and fix compat bounds (#438)

Prep for 1.0.1 and fix compat bounds (#438) #113

Workflow file for this run

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@v1
- name: Format check
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.add(PackageSpec(name="JuliaFormatter", version="0.15.11"))
using JuliaFormatter
format("src/MOI", verbose=true)
format_file("src/CPLEX.jl")
format("test", 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)