Skip to content

Commit

Permalink
FrontendTest.yml: show logs from Pluto server (#2645)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Sep 13, 2023
1 parent bd6703e commit 93cbf26
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/FrontendTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,19 @@ jobs:
- name: Run tests
working-directory: ./test/frontend
run: |
julia -e "import Pkg; Pkg.add(path=\"$GITHUB_WORKSPACE\"); Pkg.instantiate(); import Pluto; Pluto.run(port=$PLUTO_PORT, require_secret_for_access=false)" & # Run Pluto.jl server in the background
julia --project=$GITHUB_WORKSPACE -e 'import Pluto
# Run Pluto.jl server in the background
options = Pluto.Configuration.from_flat_kwargs(;
port=parse(Int, ENV["PLUTO_PORT"]),
require_secret_for_access=false,
)
🍭 = Pluto.ServerSession(; options)
server = Pluto.run!(🍭)
# Wait for Pluto to initialize
TIMES_TRIED=0
until [ $TIMES_TRIED -eq 60 ] || $(curl --output /dev/null --silent --fail "http://localhost:$PLUTO_PORT/"); do
printf '.'
TIMES_TRIED=$((TIMES_TRIED+1))
sleep 1
done
run(`npm run test`)
close(server)'
npm run test
env:
PLUTO_PORT: 1235
PLUTO_TEST_OFFLINE: ${{ github.ref_name == 'release' }}
Expand Down

0 comments on commit 93cbf26

Please sign in to comment.