Skip to content

Commit b7447b2

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

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/Integration.yml

Lines changed: 10 additions & 10 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+
set-packages: ${{ steps.set-packages.outputs.set-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

0 commit comments

Comments
 (0)