Skip to content

Commit 8d55a20

Browse files
authored
Merge pull request #202 from abhro/actions
Create dependabot.yml and update actions
2 parents 4ea07e1 + ee3127f commit 8d55a20

File tree

3 files changed

+36
-23
lines changed

3 files changed

+36
-23
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "monthly"

.github/workflows/CompatHelper.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ jobs:
1111
- uses: julia-actions/setup-julia@latest
1212
with:
1313
version: 1.3
14-
- name: Pkg.add("CompatHelper")
15-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
16-
- name: CompatHelper.main
14+
- name: Install CompatHelper
15+
shell: julia --color=yes {0}
16+
run: using Pkg; Pkg.add("CompatHelper")
17+
- name: Run CompatHelper
18+
shell: julia --color=yes {0}
19+
run: using CompatHelper; CompatHelper.main(; master_branch = "dev")
1720
env:
1821
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
run: julia -e 'using CompatHelper; CompatHelper.main(; master_branch = "dev")'

.github/workflows/ci.yml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
arch:
2525
- x64
2626
steps:
27-
- uses: actions/checkout@v2
28-
- uses: julia-actions/setup-julia@v1
27+
- uses: actions/checkout@v5
28+
- uses: julia-actions/setup-julia@v2
2929
with:
3030
version: ${{ matrix.version }}
3131
arch: ${{ matrix.arch }}
32-
- uses: julia-actions/cache@v1
32+
- uses: julia-actions/cache@v2
3333
env:
3434
cache-name: cache-artifacts
3535
with:
@@ -42,21 +42,21 @@ jobs:
4242
- uses: julia-actions/julia-buildpkg@v1
4343
- uses: julia-actions/julia-runtest@v1
4444
- uses: julia-actions/julia-processcoverage@v1
45-
- uses: codecov/codecov-action@v4
45+
- uses: codecov/codecov-action@v5
4646
with:
4747
token: ${{ secrets.CODECOV_TOKEN }}
4848
fail_ci_if_error: false
49-
verbose: true
49+
verbose: true
5050
docs:
5151
name: Documentation
5252
runs-on: ubuntu-latest
5353
steps:
54-
- uses: actions/checkout@v2
55-
- uses: julia-actions/setup-julia@v1
54+
- uses: actions/checkout@v5
55+
- uses: julia-actions/setup-julia@v2
5656
with:
5757
version: '1'
58-
- run: |
59-
julia -e '
58+
- shell: julia --color=yes {0}
59+
run: |
6060
function set_environment_variable(name::AbstractString, value::AbstractString)
6161
github_env = ENV["GITHUB_ENV"]
6262
touch(github_env)
@@ -84,35 +84,39 @@ jobs:
8484
if build_docs
8585
@info("We will build the docs")
8686
set_environment_variable("BUILD_DOCS", "true")
87-
else
87+
else
8888
@info("We will NOT build the docs")
8989
set_environment_variable("BUILD_DOCS", "false")
90-
end'
91-
- run: |
92-
julia --project=docs -e '
90+
end
91+
- name: Instantiate docs environment
92+
shell: julia --color=yes --project=docs {0}
93+
run: |
9394
if ENV["BUILD_DOCS"] == "true"
9495
using Pkg
9596
Pkg.develop(PackageSpec(path=pwd()))
9697
Pkg.instantiate()
97-
end'
98-
- run: |
99-
julia --project=docs -e '
98+
end
99+
- name: Run doctests
100+
shell: julia --color=yes --project=docs {0}
101+
run: |
100102
if ENV["BUILD_DOCS"] == "true"
101103
using Documenter: doctest
102104
using ScientificTypes
103105
@info "attempting to run the doctests"
104106
doctest(ScientificTypes)
105107
else
106108
@info "skipping the doctests"
107-
end'
108-
- run: julia --project=docs -e '
109+
end
110+
- name: Build documentation
111+
shell: julia --color=yes --project=docs {0}
112+
run: |
109113
if ENV["BUILD_DOCS"] == "true"
110114
@info "attempting to build the docs"
111115
run(`julia --project=docs docs/make.jl`)
112116
@info "successfully built the docs"
113117
else
114118
@info "skipping the docs build"
115-
end'
119+
end
116120
env:
117121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118122
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)