Skip to content

Update package.json #6687

Update package.json

Update package.json #6687

Workflow file for this run

name: Chrome frontend tests
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
paths-ignore:
- "**.md"
branches:
- main
- release
pull_request:
paths-ignore:
- "**.md"
branches-ignore:
- release
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
frontend-test:
runs-on: "ubuntu-latest"
timeout-minutes: 30
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Makes thes `julia` command available
- uses: julia-actions/setup-julia@v2
with:
version: "1.10" # our lowest supported version
- name: Install Pluto.jl packages
run: |
julia --project=$GITHUB_WORKSPACE -e "using Pkg; Pkg.instantiate()"
- uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: Install dependencies
working-directory: ./test/frontend
run: |
npm install
- name: Run tests
working-directory: ./test/frontend
run: |
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,
workspace_use_distributed_stdlib=false,
)
🍭 = Pluto.ServerSession(; options)
server = Pluto.run!(🍭)
run(`npm run test`)
close(server)'
env:
PLUTO_PORT: 1235
PLUTO_TEST_OFFLINE: ${{ github.ref_name == 'release' }}
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-screenshot-artifacts
path: ${{ github.workspace }}/test/frontend/artifacts/*.png