Skip to content

Merge pull request #132 from isaacsas/update_jumpproc_for_catalyst14 #119

Merge pull request #132 from isaacsas/update_jumpproc_for_catalyst14

Merge pull request #132 from isaacsas/update_jumpproc_for_catalyst14 #119

Workflow file for this run

name: format-check
on:
push:
branches:
- 'master'
- 'release-'
tags: '*'
pull_request:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 1
- name: Install JuliaFormatter
run: |
using Pkg
name = "JuliaFormatter"
uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
Pkg.add(; name, uuid)
shell: julia --color=yes {0}
- name: Format Julia code
run: |
using JuliaFormatter
format("."; verbose = true)
shell: julia --color=yes {0}
- name: Format check
run: |
out = Cmd(`git diff --name-only`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
end
shell: julia --color=yes {0}