Skip to content

Commit ce4e514

Browse files
committed
rework workflows
1 parent f888985 commit ce4e514

File tree

1 file changed

+18
-22
lines changed

1 file changed

+18
-22
lines changed

.github/workflows/ci.yml

+18-22
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,27 @@ jobs:
1717
version:
1818
- "1.6"
1919
- "1"
20-
os:
21-
- ubuntu-latest
22-
- macOS-latest
23-
- windows-latest
20+
os: [ubuntu-latest, macOS-latest, windows-latest]
2421
arch:
2522
- x64
2623
steps:
27-
- uses: actions/checkout@v2
28-
- uses: julia-actions/setup-julia@v1
24+
- uses: actions/checkout@v3
25+
- uses: julia-actions/setup-julia@latest
2926
with:
3027
version: ${{ matrix.version }}
3128
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
29+
- uses: julia-actions/cache@v1
30+
- name: Test GeometryBasicsCore
31+
run: |
32+
julia --color=yes --project=@. -e '
33+
using Pkg
34+
Pkg.develop(PackageSpec(path=joinpath(pwd(), "GeometryBasicsCore")))
35+
Pkg.test("GeometryBasicsCore")
36+
'
37+
- uses: julia-actions/julia-buildpkg@latest
38+
- uses: julia-actions/julia-runtest@latest
39+
- uses: julia-actions/julia-processcoverage@latest
40+
- uses: codecov/codecov-action@v3
4641
with:
4742
file: lcov.info
4843
docs:
@@ -51,13 +46,14 @@ jobs:
5146
env:
5247
JULIA_PKG_SERVER: ""
5348
steps:
54-
- uses: actions/checkout@v2
55-
- uses: julia-actions/setup-julia@v1
49+
- uses: actions/checkout@v3
50+
- uses: julia-actions/setup-julia@latest
5651
with:
5752
version: "1.7"
5853
- run: |
5954
julia --project=docs -e '
6055
using Pkg
56+
Pkg.develop(PackageSpec(path=joinpath(pwd(), "GeometryBasicsCore")))
6157
Pkg.develop(PackageSpec(path=pwd()))
6258
Pkg.instantiate()'
6359
- run: julia --project=docs docs/make.jl

0 commit comments

Comments
 (0)