[FileFormats.MPS] allow the RHS name to be optional when reading (#2942) #5408
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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="2")) | |
| 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) |