Skip to content

Fix v1beta api compatibility, modify tests and examples to use `gem… #23

Fix v1beta api compatibility, modify tests and examples to use `gem…

Fix v1beta api compatibility, modify tests and examples to use `gem… #23

Workflow file for this run

name: Format Check
on:
workflow_dispatch:
push:
branches:
- 'main'
tags: '*'
pull_request:
jobs:
format-check:
name: Format check
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v4
- name: Instantiate `format` environment and format
run: |
julia --project=format --color=yes -e 'using Pkg; Pkg.instantiate()'
julia --project=format --color=yes 'format/run.jl'
- name: Format check
run: |
julia -e '
out = read(`git diff --name-only`, String)
if out == ""
exit(0)
else
@error "Some files have not been formatted!"
write(stdout, out)
exit(1)
end'