Skip to content

Commit

Permalink
updates workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mischmi96 committed Nov 5, 2021
1 parent 46c6fa5 commit 6b0f4c3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 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: [main]
tags: [v*]
pull_request:

jobs:
format:
name: "Format Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: 1
- 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
17 changes: 0 additions & 17 deletions .github/workflows/Runtests.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ jobs:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
arch: x64
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v2
with:
file: ./lcov.info
name: codecov-umbrella
fail_ci_if_error: false
if: ${{ matrix.julia-version == '1.6' && matrix.os =='ubuntu-latest' }}

0 comments on commit 6b0f4c3

Please sign in to comment.