Skip to content

Commit

Permalink
Add downstream test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Apr 22, 2024
1 parent 5768754 commit 0a6bbcc
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Downstream
on:
push:
branches:
- main
tags: '*'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: downstream ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- 'ClimaAtmos.jl'
- 'ClimaLand.jl'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1.10'
arch: 'x86'
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: actions/checkout@v4
with:
repository: 'CliMA/${{ matrix.package }}'
path: ${{ matrix.package }}
- run: |
julia --project=${{ matrix.package }} -e 'using Pkg; Pkg.instantiate()'
julia --project=${{ matrix.package }} -e 'using Pkg; Pkg.devel(; path = ".")'
julia --project=${{ matrix.package }} -e 'using Pkg; Pkg.test()'

0 comments on commit 0a6bbcc

Please sign in to comment.