Skip to content

Commit 354e289

Browse files
authored
ci: use julia-actions/julia-format action (#61)
1 parent 5551e30 commit 354e289

File tree

2 files changed

+36
-41
lines changed

2 files changed

+36
-41
lines changed

.github/workflows/format-julia.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Format: Julia"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- "**.jl"
8+
- ".JuliaFormatter.toml"
9+
- ".github/workflows/format-julia.yaml"
10+
pull_request:
11+
types:
12+
- opened
13+
- reopened
14+
- synchronize
15+
- ready_for_review
16+
- labeled
17+
paths:
18+
- "**.jl"
19+
- ".JuliaFormatter.toml"
20+
- ".github/workflows/format-julia.yaml"
21+
22+
env:
23+
CI: true
24+
25+
jobs:
26+
format:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: julia-actions/julia-format@v3
30+
with:
31+
# Version compat for JuliaFormatter.jl (default: '1')
32+
# E.g. set to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54
33+
version: '1'
34+
# GitHub PR label that enabled formatting suggestions.
35+
# Leave this unset or empty to show suggestions for all PRs.
36+
suggestion-label: 'format-suggest'

.github/workflows/julia_formatter.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)