From afafae276989a99d63ef34134d5e7278cad36549 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 4 Apr 2022 17:31:05 -0500 Subject: [PATCH] Add linting workflow Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- .github/workflows/Linting.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/Linting.yml diff --git a/.github/workflows/Linting.yml b/.github/workflows/Linting.yml new file mode 100644 index 0000000..b428b31 --- /dev/null +++ b/.github/workflows/Linting.yml @@ -0,0 +1,48 @@ +name: Lint Code Base +on: + push: + pull_request: + +jobs: + markdown: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "16" + - run: npm install -g markdownlint-cli + - run: markdownlint ${GITHUB_WORKSPACE} + + prettier: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "16" + - run: npm install -g prettier@2 + - run: prettier --check ${GITHUB_WORKSPACE} + + spelling: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: streetsidesoftware/cspell-action@v1 + with: + incremental_files_only: false + inline: error + + julia-formatter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: "1" + - run: julia -e 'using Pkg; Pkg.add("JuliaFormatter")' + - run: | + julia -e ' + using JuliaFormatter + exit(Int(!format("."; verbose=true, overwrite=false))) + '