Skip to content

Commit

Permalink
Add Format action
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Dec 5, 2024
1 parent 8dcab84 commit bb291df
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/Format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ name: Format
on:
push:
branches:
# This is where pull requests from "bors r+" are built.
- staging
# This is where pull requests from "bors try" are built.
- trying
# Build the main branch.
- main
pull_request:
branches:
- main

concurrency:
Expand All @@ -19,20 +17,7 @@ concurrency:
jobs:
format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1
- name: Format code
run: |
using Pkg
Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
using JuliaFormatter
format("."; verbose=true)
shell: julia --color=yes {0}
- uses: reviewdog/action-suggester@v1
if: github.event_name == 'pull_request'
with:
tool_name: JuliaFormatter
fail_on_error: true
uses: TuringLang/actions/Format@v2

0 comments on commit bb291df

Please sign in to comment.