Skip to content

Commit cd5d8e6

Browse files
committed
Use julia for scripting because that's a lot saner than bash
1 parent a2c5046 commit cd5d8e6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/Integration.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ jobs:
3232
name: Generate list of packages for integration tests
3333
runs-on: ubuntu-latest
3434
outputs:
35-
matrix: ${{ steps.set-matrix.outputs.matrix }}
35+
packages: ${{ steps.set-packages.outputs.packages }}
3636
steps:
3737
- uses: actions/checkout@v5
38+
- uses: julia-actions/setup-julia@v2
3839
- name: Set packages
3940
id: set-packages
41+
shell: julia --color=yes {0}
4042
run: |
41-
set -e
42-
shopt -s globstar
43-
# Find all test files and generate their list in JSON format
44-
PACKAGES='packages=['
45-
for pkg in test/integration/*; do
46-
PACKAGES="${PACKAGES}\"$(basename ${pkg})\","
47-
done
48-
PACKAGES="${PACKAGES}]"
49-
echo "${PACKAGES}" | tee "${GITHUB_OUTPUT}"
43+
all_pkgs = readdir("test/integration")
44+
filtered_pkgs = all_pkgs
45+
pkgs = string("packages=", filtered_pkgs)
46+
open(ENV["GITHUB_OUTPUT"], "w") do io
47+
print(stdout, pkgs)
48+
print(io, pkgs)
49+
end
5050
5151
integration:
5252
needs: generate-packages-list
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
fail-fast: false
6262
matrix:
63-
package: ${{ fromJson(needs.generate-packages-list.outputs.set-packages) }}
63+
package: ${{ fromJson(needs.generate-packages-list.outputs.packages) }}
6464
version:
6565
- '1.10'
6666
- '1.11'

0 commit comments

Comments
 (0)