Skip to content

Commit

Permalink
Start
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyuxie committed Oct 17, 2024
1 parent 00ef308 commit f3d86c9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: format-check
name: Format check and suggestions

on:
push:
branches:
- 'main'
tags: '*'
pull_request:
# this argument is not required if you don't use the `suggestion-label` input
types: [opened, reopened, synchronize, labeled, unlabeled]

jobs:
check-format:
Expand All @@ -26,11 +28,9 @@ jobs:
#
# julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version = "0.13.0"))'
#
# TODO: Change the call below to
# format(".")
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.60"))'
julia -e 'using JuliaFormatter; format(["benchmark", "examples", "ext", "src", "test", "utils"])'
julia -e 'using JuliaFormatter; format(".")'
- name: Format check
run: |
julia -e '
Expand All @@ -42,3 +42,12 @@ jobs:
write(stdout, out)
exit(1)
end'
format-suggestions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/julia-format@v3
with:
version: "1" # Set this to '1.0.54' if needed
suggestion-label: "format-suggest" # Leave empty to show suggestions for all PRs

0 comments on commit f3d86c9

Please sign in to comment.