Skip to content

Commit

Permalink
ci: use julia-actions/julia-format action (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi authored Jun 24, 2024
1 parent 5551e30 commit 354e289
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 41 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/format-julia.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Format: Julia"
on:
push:
branches:
- main
paths:
- "**.jl"
- ".JuliaFormatter.toml"
- ".github/workflows/format-julia.yaml"
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- "**.jl"
- ".JuliaFormatter.toml"
- ".github/workflows/format-julia.yaml"

env:
CI: true

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/julia-format@v3
with:
# Version compat for JuliaFormatter.jl (default: '1')
# E.g. set to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54
version: '1'
# GitHub PR label that enabled formatting suggestions.
# Leave this unset or empty to show suggestions for all PRs.
suggestion-label: 'format-suggest'
41 changes: 0 additions & 41 deletions .github/workflows/julia_formatter.yml

This file was deleted.

0 comments on commit 354e289

Please sign in to comment.