Skip to content

Commit 1e9ffca

Browse files
committed
copy formatting github action from ChainRulesCore.jl
1 parent a9fedbe commit 1e9ffca

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/code-style.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
name: Code style
1+
name: Format suggestions
22

33
on:
44
pull_request:
55

6+
concurrency:
7+
# Skip intermediate builds: always.
8+
# Cancel intermediate builds: only if it is a pull request build.
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
11+
612
jobs:
7-
code-style:
13+
format:
814
runs-on: ubuntu-latest
915
steps:
10-
- uses: tkf/julia-code-style-suggesters@v1
16+
- uses: actions/checkout@v2
17+
- uses: julia-actions/setup-julia@latest
18+
with:
19+
version: 1
20+
- run: |
21+
julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
22+
julia -e 'using JuliaFormatter; format("."; verbose=true)'
23+
- uses: reviewdog/action-suggester@v1
24+
with:
25+
tool_name: JuliaFormatter
26+
fail_on_error: true
27+
filter_mode: added

0 commit comments

Comments
 (0)