Skip to content

Commit

Permalink
add Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jguterl committed May 14, 2024
1 parent f14e1dc commit 20aa3dc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/Format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Format
on:
push:
branches: [master]
tags: [v*]
pull_request:

jobs:
format:
name: "Format Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 1
- uses: julia-actions/cache@v2
- name: Install JuliaFormatter and format
run: |
using Pkg
Pkg.add(PackageSpec(name="JuliaFormatter"))
using JuliaFormatter
format("."; verbose=true)
shell: julia --color=yes {0}
- name: Suggest formatting changes
uses: reviewdog/action-suggester@v1
if: github.event_name == 'pull_request'
with:
tool_name: JuliaFormatter
fail_on_error: true
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[![CI][ci-img]][ci-url]
[ci-img]: https://github.com/ProjectTorreyPines/ADAS.jl/.github/workflows/ci.yml/badge.svg?branch=master
[ci-url]: https://github.com/ProjectTorreyPines/ADAS.jl/.github/workflows/ci.yml?query=workflow
![CI](https://github.com/ProjectTorreyPines/ADAS.jl/.github/workflows/ci.yml/badge.svg?branch=master)
# ADAS.jl

This package provides ADAS ionization, recombination, radiation, ... rates and some functions to retrieve cooling rates, Zeff and effective charge state.
Expand Down

0 comments on commit 20aa3dc

Please sign in to comment.