Skip to content

Commit bb6c330

Browse files
committed
rework workflows
1 parent f888985 commit bb6c330

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/ci.yml

+25-25
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches:
99
- master
10+
defaults:
11+
run:
12+
shell: bash
1013
jobs:
1114
test:
1215
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -15,34 +18,29 @@ jobs:
1518
fail-fast: false
1619
matrix:
1720
version:
18-
- "1.6"
19-
- "1"
20-
os:
21-
- ubuntu-latest
22-
- macOS-latest
23-
- windows-latest
21+
- '1.6' # lowest declared `julia` compat in `Project.toml`
22+
- '1'
23+
os: [ubuntu-latest, macOS-latest, windows-latest]
2424
arch:
2525
- x64
2626
steps:
27-
- uses: actions/checkout@v2
28-
- uses: julia-actions/setup-julia@v1
27+
- uses: actions/checkout@v3
28+
- uses: julia-actions/setup-julia@latest
2929
with:
3030
version: ${{ matrix.version }}
3131
arch: ${{ matrix.arch }}
32-
- uses: actions/cache@v1
33-
env:
34-
cache-name: cache-artifacts
35-
with:
36-
path: ~/.julia/artifacts
37-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38-
restore-keys: |
39-
${{ runner.os }}-test-${{ env.cache-name }}-
40-
${{ runner.os }}-test-
41-
${{ runner.os }}-
42-
- uses: julia-actions/julia-buildpkg@v1
43-
- uses: julia-actions/julia-runtest@v1
44-
- uses: julia-actions/julia-processcoverage@v1
45-
- uses: codecov/codecov-action@v1
32+
- uses: julia-actions/cache@v1
33+
- name: Test GeometryBasicsCore
34+
run: |
35+
julia --color=yes --project=@. -e '
36+
using Pkg
37+
Pkg.develop(PackageSpec(path=joinpath(pwd(), "GeometryBasicsCore")))
38+
Pkg.test("GeometryBasicsCore")
39+
'
40+
- uses: julia-actions/julia-buildpkg@latest
41+
- uses: julia-actions/julia-runtest@latest
42+
- uses: julia-actions/julia-processcoverage@latest
43+
- uses: codecov/codecov-action@v3
4644
with:
4745
file: lcov.info
4846
docs:
@@ -51,15 +49,17 @@ jobs:
5149
env:
5250
JULIA_PKG_SERVER: ""
5351
steps:
54-
- uses: actions/checkout@v2
55-
- uses: julia-actions/setup-julia@v1
52+
- uses: actions/checkout@v3
53+
- uses: julia-actions/setup-julia@latest
5654
with:
5755
version: "1.7"
5856
- run: |
5957
julia --project=docs -e '
6058
using Pkg
59+
Pkg.develop(PackageSpec(path=joinpath(pwd(), "GeometryBasicsCore")))
6160
Pkg.develop(PackageSpec(path=pwd()))
62-
Pkg.instantiate()'
61+
Pkg.instantiate()
62+
'
6363
- run: julia --project=docs docs/make.jl
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)