-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 2.63 KB
/
test-website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This is a basic workflow to help you get started with Actions
name: Tests
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prerequisites
run: |
sudo apt-get update
sudo apt-get -y install libjson-perl libperlio-gzip-perl libgd-perl libjson-perl pandoc libyaml-perl
(curl -L http://cpanmin.us | sudo perl - --self-upgrade) && sudo cpanm --notest Pandoc Text::CSV
git clone https://github.com/pombase/curation.git pombase-curation
git clone https://github.com/pombase/genome_changelog.git genome_changelog
cp -r genome_changelog/results/pombase_tables data_files
curl -OL http://current.geneontology.org/metadata/GO.xrf_abbs
curl -OL https://raw.githubusercontent.com/pombase/pombase-config/master/website/trackListTemplate.json
curl -OL https://raw.githubusercontent.com/pombase/pombase-config/master/website/pombase_jbrowse_track_metadata.csv
curl -OL https://raw.githubusercontent.com/pombase/pombase-chado/master/etc/create_jbrowse_track_list.pl && chmod a+x create_jbrowse_track_list.pl
curl -OL https://raw.githubusercontent.com/japonicusdb/japonicus-config/main/japonicus_site_config.json
(cd /tmp/; curl -O -L https://github.com/jgm/pandoc/releases/download/2.8/pandoc-2.8-1-amd64.deb; sudo dpkg -i pandoc-2.8-1-amd64.deb)
yarn
- name: Test
run: |
cp src/pombase/index.html src/index.html # usually copied by pombase-chado/etc/build_container.sh
echo generating JBrowse JSON:
./create_jbrowse_track_list.pl trackListTemplate.json pombase_jbrowse_track_metadata.csv /dev/null /dev/null ./minimal_jbrowse_track_list.json && \
curl -L https://raw.githubusercontent.com/pombase/pombase-config/master/website/pombase_v2_config.json > main_config.json && \
echo generating doc files: && \
./etc/update_generated_files.sh main_config.json data_files && node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --no-progress && \
echo checking for broken links in PomBase docs: && \
./etc/check_docs_broken_links.pl main_config.json src/docs src/assets && \
echo checking for broken links in JaponicusDB docs: && \
./etc/check_docs_broken_links.pl japonicus_site_config.json src/docs src/assets && \
echo all checks passed