Skip to content

Fix javascript errors when selecting season in boxplotter #2589

Fix javascript errors when selecting season in boxplotter

Fix javascript errors when selecting season in boxplotter #2589

Workflow file for this run

on:
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
jobs:
test_breedbase:
runs-on: ubuntu-latest
container:
image: breedbase/breedbase:latest
env:
HOME: /root
MODE: 'TESTING'
SYSTEM: 'GITACTION'
PGPASSWORD: postgres
SGN_TEST_SERVER: http://test_breedbase:3010
SGN_REMOTE_SERVER_ADDR: selenium
volumes:
- ${{ github.workspace }}:/home/production/cxgn/sgn
- ${{ github.workspace }}:/home/vagrant/cxgn/sgn
options: --network-alias test_breedbase
services:
breedbase_db:
image: postgres:12.9
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
selenium:
image: selenium/standalone-firefox:3.141.59
volumes:
- ${{ github.workspace }}:/home/production/cxgn/sgn
- ${{ github.workspace }}:/home/vagrant/cxgn/sgn
options: --health-cmd="curl --silent --head http://localhost:4444 || exit 1"
keycloak_db:
image: postgres:13.0
env:
POSTGRES_DB: keycloak
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
keycloak:
image: bffafirms/keycloak:26.5.1-0-breedbase-testing
env:
KC_DB_USERNAME: postgres
KC_DB_PASSWORD: postgres
KC_BOOTSTRAP_ADMIN_PASSWORD: password
steps:
- name: Checkout sgn
uses: actions/checkout@v5
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install JS deps
working-directory: js
run: npm install
- name: Pin Node binaries
run: |
NODE_BIN="$(dirname "$(which node)")"
for tool in node npm npx; do
ln -sf "$NODE_BIN/$tool" /usr/local/bin/$tool
ln -sf "$NODE_BIN/$tool" /usr/bin/$tool
done
node --version
npm --version
- name: Run unit tests
run: prove --recurse t/unit 2>/dev/null
- name: Load/dump fixture database and build node modules
run: |
echo "--version" > ~/.proverc
perl t/test_fixture.pl --dumpupdatedfixture
rm ~/.proverc
# work around run_all_patches.pl "what the heck - no TTY??" error
# https://github.com/actions/runner/issues/241#issuecomment-842566950
shell: 'script --flush --quiet --return --command "bash --noprofile --norc -eo pipefail {0}"'
- name: Run unit_fixture tests
# need entrypoint.sh to start slurm
# --nopatch to skip running fixture and db patches (already done in previous step)
run: /entrypoint.sh --nopatch t/unit_fixture 2>/dev/null
- name: Run unit_mech tests
run: /entrypoint.sh --nopatch t/unit_mech
# selenium tests for a moment as separate folders - will change once full solgs are ready
# but anyway, it will is still fully functional for tests purpose
- name: Run selenium tests 01_list
run: /entrypoint.sh --nopatch t/selenium2/01_list 2>/dev/null
- name: Run selenium tests 02_trial
run: /entrypoint.sh --nopatch t/selenium2/02_trial 2>/dev/null
- name: Run selenium tests dataset
run: /entrypoint.sh --nopatch t/selenium2/03_dataset 2>/dev/null
- name: Run selenium tests authenticate
run: /entrypoint.sh --nopatch t/selenium2/authenticate 2>/dev/null
- name: Run selenium tests breeders
run: /entrypoint.sh --nopatch t/selenium2/breeders 2>/dev/null
- name: Run selenium tests onto
run: /entrypoint.sh --nopatch t/selenium2/onto 2>/dev/null
- name: Run selenium tests search
run: /entrypoint.sh --nopatch t/selenium2/search 2>/dev/null
- name: Run selenium tests stock
run: /entrypoint.sh --nopatch t/selenium2/stock 2>/dev/null
- name: Run selenium tests tools
run: /entrypoint.sh --nopatch t/selenium2/tools 2>/dev/null