Skip to content

Commit c0b93ad

Browse files
committed
Add downstream tests
1 parent 7493daf commit c0b93ad

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/Downstream.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Downstream
2+
on:
3+
push:
4+
branches: [main]
5+
tags: [v*]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: ${{ matrix.package }}
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
package:
16+
- "XLSX"
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/setup-julia@v2
20+
with:
21+
version: 1
22+
arch: x64
23+
show-versioninfo: true
24+
- uses: julia-actions/julia-buildpkg@latest
25+
- name: Load this and run the downstream tests
26+
shell: julia --color=yes {0}
27+
run: |
28+
using Pkg
29+
Pkg.Registry.update()
30+
Pkg.activate(;temp=true)
31+
# force it to use this PR's version of the package
32+
ENV["JULIA_PKG_DEVDIR"]= mktempdir()
33+
Pkg.develop([
34+
PackageSpec(path="."),
35+
PackageSpec(name="${{ matrix.package }}"),
36+
])
37+
Pkg.update()
38+
Pkg.test("${{ matrix.package }}")

0 commit comments

Comments
 (0)