Skip to content

Commit 0af900c

Browse files
Sbozzolojuliasloan25
authored andcommitted
Add downstream test
1 parent a6a6a20 commit 0af900c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/downstream.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Downstream
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: '*'
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
test:
15+
name: downstream ${{ matrix.package }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
package:
21+
- 'ClimaAtmos.jl'
22+
- 'ClimaLand.jl'
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: julia-actions/setup-julia@v1
26+
with:
27+
version: '1.10'
28+
- uses: julia-actions/cache@v1
29+
- uses: julia-actions/julia-buildpkg@v1
30+
- uses: actions/checkout@v4
31+
with:
32+
repository: 'CliMA/${{ matrix.package }}'
33+
path: ${{ matrix.package }}
34+
- run: |
35+
julia --color=yes --project=${{ matrix.package }} -e 'using Pkg; Pkg.instantiate()'
36+
julia --color=yes --project=${{ matrix.package }} -e 'using Pkg; Pkg.develop(; path = ".")'
37+
julia --color=yes --project=${{ matrix.package }} -e 'using Pkg; Pkg.test()'

0 commit comments

Comments
 (0)