Skip to content

Commit

Permalink
Consolidate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
goerz committed Oct 17, 2023
1 parent 1baf392 commit ca69bfa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 34 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/SpellCheck.yml

This file was deleted.

30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
os: windows-latest
version: '1'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand All @@ -53,11 +53,11 @@ jobs:
fail-fast: false
matrix:
include:
- title: 'Linux - LTS'
- title: 'Linux - Oldest'
os: ubuntu-latest
version: '1.6'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand All @@ -76,7 +76,7 @@ jobs:
statuses: write
pages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1'
Expand All @@ -95,7 +95,7 @@ jobs:
name: Codestyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1'
Expand All @@ -106,19 +106,21 @@ jobs:
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
julia -e 'using JuliaFormatter; format(["src", "docs", "test", "devrepl.jl"], verbose=true)'
- name: Format check
- name: Format Check
shell: julia {0}
run: |
julia -e '
out = Cmd(`git diff -U0`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!\n\n$out"
exit(1)
end'
- name: Version check
end
- name: Spell Check
uses: crate-ci/typos@master
- name: Version Check
shell: julia {0}
run: |
julia -e '
using Pkg
VERSION = VersionNumber(Pkg.TOML.parsefile("Project.toml")["version"])
BRANCH = ENV["GITHUB_REF_NAME"]
Expand All @@ -139,10 +141,10 @@ jobs:
else
println("Version $VERSION OK on $BRANCH")
end
exit(0)'
- name: Changelog check
exit(0)
- name: Changelog Check
shell: julia {0}
run: |
julia -e '
using Pkg
using Dates
VERSION = VersionNumber(Pkg.TOML.parsefile("Project.toml")["version"])
Expand Down Expand Up @@ -184,4 +186,4 @@ jobs:
end
end
println("NEWS.md OK")
exit(0)'
exit(0)

0 comments on commit ca69bfa

Please sign in to comment.