Skip to content

Bump codecov/codecov-action from 5.0.2 to 5.1.1 (#33) #71

Bump codecov/codecov-action from 5.0.2 to 5.1.1 (#33)

Bump codecov/codecov-action from 5.0.2 to 5.1.1 (#33) #71

Workflow file for this run

name: format-check
on:
push:
branches:
- 'main'
- /^release-.*$/
tags: '*'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
# note: keep in sync with `/format/run.jl`
paths:
- 'src/**'
- 'test/**'
- 'format/**'
- '.github/workflows/format-check.yml'
jobs:
format-check:
name: Format check (Julia ${{ matrix.julia-version }} - ${{ github.event_name }})
# Run on push's or non-draft PRs
if: (github.event_name == 'push') || (github.event.pull_request.draft == false)
runs-on: ubuntu-latest
strategy:
matrix:
julia-version: [1.7.2]
steps:
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: actions/checkout@v4
- name: Instantiate `format` environment and format
run: |
julia --project=format -e 'using Pkg; Pkg.instantiate()'
julia --project=format 'format/run.jl'
- uses: reviewdog/action-suggester@v1
if: github.event_name == 'pull_request'
with:
tool_name: JuliaFormatter
fail_on_error: true