Restore CI tests and update for Z7 and combined repo

Now needs to run fetch_xulrunner instead of downloading Firefox
This commit is contained in:
Dan Stillman 2023-04-29 05:51:13 -04:00
parent 4c283d88c7
commit 328de1e790

View file

@ -17,8 +17,7 @@ jobs:
# On GitHub # On GitHub
- name: Install xvfb - name: Install xvfb
if: false # temporarily disabled if: env.ACT != 'true'
#if: env.ACT != 'true'
run: sudo apt update && sudo apt install -y xvfb run: sudo apt update && sudo apt install -y xvfb
# Local via act # Local via act
@ -26,23 +25,16 @@ jobs:
if: env.ACT == 'true' if: env.ACT == 'true'
run: apt update && apt install -y zstd xvfb dbus-x11 libgtk-3-0 libx11-xcb1 libdbus-glib-1-2 libxt6 run: apt update && apt install -y zstd xvfb dbus-x11 libgtk-3-0 libx11-xcb1 libdbus-glib-1-2 libxt6
- name: Cache Firefox - name: Cache xulrunner
if: false # temporarily disabled id: xulrunner-cache
id: firefox-cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: firefox-x86_64 path: app/xulrunner/firefox-x86_64
key: firefox-60.9.0esr key: xulrunner-${{ hashFiles('app/config.sh', 'app/scripts/fetch_xulrunner') }}
- name: Download Firefox - name: Fetch xulrunner
if: false # temporarily disabled if: steps.xulrunner-cache.outputs.cache-hit != 'true'
#if: steps.firefox-cache.outputs.cache-hit != 'true' run: app/scripts/fetch_xulrunner -p l
run: wget -O tarball "https://zotero-download.s3.us-east-1.amazonaws.com/dev/firefox-60.9.0esr-x86_64-modified.tar.gz"
- name: Extract Firefox
if: false # temporarily disabled
#if: steps.firefox-cache.outputs.cache-hit != 'true'
run: tar xvf tarball
- name: Cache Node modules - name: Cache Node modules
id: node-cache id: node-cache
@ -79,8 +71,7 @@ jobs:
dpl --provider=s3 --bucket=zotero-download --local-dir=build-zip --upload-dir=ci/client --acl=public-read --skip_cleanup=true dpl --provider=s3 --bucket=zotero-download --local-dir=build-zip --upload-dir=ci/client --acl=public-read --skip_cleanup=true
- name: Run tests - name: Run tests
if: false # temporarily disabled run: xvfb-run test/runtests.sh -f
run: xvfb-run test/runtests.sh -x firefox-x86_64/firefox -f
- name: Cache utilities Node modules - name: Cache utilities Node modules
id: utilities-node-cache id: utilities-node-cache