-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add style enforcement * concurrency * YAS
- Loading branch information
Showing
13 changed files
with
343 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Style-Enforcer | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- /^release-.*$/ | ||
tags: ["*"] | ||
paths: | ||
- "**/*.jl" | ||
- ".github/workflows/style.yml" | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- "**/*.jl" | ||
- ".github/workflows/style.yml" | ||
jobs: | ||
format-check: | ||
name: YAS | ||
# These permissions are needed to: | ||
# - Delete old caches: https://github.com/julia-actions/cache#usage | ||
# - Post formatting suggestions: https://github.com/reviewdog/action-suggester#required-permissions | ||
permissions: | ||
actions: write | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: "1" | ||
- uses: julia-actions/cache@v1 | ||
- name: Install JuliaFormatter | ||
shell: julia --project=@format --color=yes {0} | ||
run: | | ||
using Pkg | ||
Pkg.add(PackageSpec(; name="JuliaFormatter", version="1")) | ||
- name: Check formatting | ||
shell: julia --project=@format --color=yes {0} | ||
run: | | ||
using JuliaFormatter | ||
format(".", YASStyle(); verbose=true) | ||
- uses: reviewdog/action-suggester@v1 | ||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | ||
with: | ||
tool_name: JuliaFormatter | ||
fail_on_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
using Documenter | ||
using MixedModelsSim | ||
|
||
makedocs( | ||
sitename = "MixedModelsSim.jl", | ||
doctest = true, | ||
authors = "Phillip Alday, Douglas Bates, Lisa DeBruine, Reinhold Kliegl", | ||
pages = [ | ||
"index.md", | ||
"Rapid Start" => "simulation.md", | ||
"Beginner Friendly Tutorial" => "simulation_tutorial.md", | ||
], | ||
) | ||
makedocs(; sitename="MixedModelsSim.jl", | ||
doctest=true, | ||
authors="Phillip Alday, Douglas Bates, Lisa DeBruine, Reinhold Kliegl", | ||
pages=["index.md", | ||
"Rapid Start" => "simulation.md", | ||
"Beginner Friendly Tutorial" => "simulation_tutorial.md"]) | ||
|
||
deploydocs(; repo = "github.com/RePsychLing/MixedModelsSim.jl", push_preview = true) | ||
deploydocs(; repo="github.com/RePsychLing/MixedModelsSim.jl", push_preview=true) |
Oops, something went wrong.