From 2c9ac7817f738816b4f4879ea0982ae4a5c4b69a Mon Sep 17 00:00:00 2001 From: thecoderatekid Date: Thu, 7 Aug 2025 20:45:42 +0000 Subject: [PATCH] Update .gitea/workflows/julia-test.yml --- .gitea/workflows/julia-test.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/julia-test.yml b/.gitea/workflows/julia-test.yml index c927cf3..dc792a4 100644 --- a/.gitea/workflows/julia-test.yml +++ b/.gitea/workflows/julia-test.yml @@ -26,23 +26,17 @@ jobs: run: | set -euo pipefail if [ -f Project.toml ]; then - # Activate the repo project and run its tests julia -e 'using Pkg; Pkg.activate("."); Pkg.test()' else - # Create a tiny project + test so the job still proves the runner works mkdir -p test - cat > Project.toml <<'EOF' - name = "HelloCI" - uuid = "f0f9c0b0-0000-4e00-9000-000000000001" - version = "0.1.0" - - [deps] - Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" - EOF - cat > test/runtests.jl <<'EOF' - using Test - @test 2 + 2 == 4 - println("Hello, Julia!") - EOF + printf '%s\n' \ + 'name = "HelloCI"' \ + 'uuid = "f0f9c0b0-0000-4e00-9000-000000000001"' \ + 'version = "0.1.0"' '' '[deps]' \ + 'Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"' > Project.toml + printf '%s\n' \ + 'using Test' \ + '@test 2 + 2 == 4' \ + 'println("Hello, Julia!")' > test/runtests.jl julia -e 'using Pkg; Pkg.activate("."); Pkg.test()' - fi + fi