Skip to content

Commit

Permalink
Merge pull request #7177 from unfoldingWord/feature-mcleanb-7167
Browse files Browse the repository at this point in the history
Feature 7171/Add verse span support to WA
  • Loading branch information
mannycolon authored Oct 16, 2021
2 parents 115eb06 + 18f44cc commit e04e19d
Show file tree
Hide file tree
Showing 10 changed files with 204 additions and 88 deletions.
59 changes: 52 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# run: echo "$GITHUB_CONTEXT"
- uses: actions/setup-node@v1
with:
node-version: '16.4.0'
node-version: '16.4.2'
- name: Node version
run: |
node --version
Expand All @@ -54,7 +54,11 @@ jobs:
submodules: recursive

- name: npm install
run: npm ci
run: |
# Fix for problem of cached files from older npm versions, move npm cache to temp directory
TMPDIR=$(mktemp -d)
echo "$TMPDIR"
npm ci --cache="$TMPDIR"
- name: npm test
run: npm run ci-test
Expand Down Expand Up @@ -115,15 +119,32 @@ jobs:
echo "BUILD=$HASH" >> .env.tmp
- name: npm install
run: npm ci
run: |
# Fix for problem of cached files from older npm versions, move npm cache to temp directory
TMPDIR=$(mktemp -d)
echo "$TMPDIR"
npm ci --cache="$TMPDIR"
- name: Download latest language names
if: env.UPDATE_RESOURCES
run: curl https://td.unfoldingword.org/exports/langnames.json > src/assets/langnames.json
run: |
# TODO: remove this fix for expired certs on uw website - hack for curl crash on invalid certs, added --insecure param
curl --insecure https://td.unfoldingword.org/exports/langnames.json > src/assets/langnames.json
- name: Before Update resources - save original manifest
run: cp tcResources/source-content-updater-manifest.json source-content-updater-manifest.json.orig

- name: Update resources
if: env.UPDATE_RESOURCES
run: npm run update-resources
# add automatic retry
uses: nick-invision/retry@v2
with:
timeout_minutes: 15
max_attempts: 3
retry_on: error
command: npm run update-resources
# restore original manifest before retry
on_retry_command: cp source-content-updater-manifest.json.orig tcResources/source-content-updater-manifest.json

- name: build linux
id: build
Expand Down Expand Up @@ -191,9 +212,22 @@ jobs:
if: env.UPDATE_RESOURCES
run: curl https://td.unfoldingword.org/exports/langnames.json > src/assets/langnames.json

- name: Before Update resources - save original manifest
shell: bash
run: cp tcResources/source-content-updater-manifest.json source-content-updater-manifest.json.orig

- name: Update resources
if: env.UPDATE_RESOURCES
run: npm run update-resources
# add automatic retry
uses: nick-invision/retry@v2
with:
timeout_minutes: 15
max_attempts: 3
retry_on: error
shell: bash
command: npm run update-resources
# restore original manifest before retry
on_retry_command: cp source-content-updater-manifest.json.orig tcResources/source-content-updater-manifest.json

- name: build windows
run: |
Expand Down Expand Up @@ -291,9 +325,20 @@ jobs:
if: env.UPDATE_RESOURCES
run: curl https://td.unfoldingword.org/exports/langnames.json > src/assets/langnames.json

- name: Before Update resources - save original manifest
run: cp tcResources/source-content-updater-manifest.json source-content-updater-manifest.json.orig

- name: Update resources
if: env.UPDATE_RESOURCES
run: npm run update-resources
# add automatic retry
uses: nick-invision/retry@v2
with:
timeout_minutes: 15
max_attempts: 3
retry_on: error
command: npm run update-resources
# restore original manifest before retry
on_retry_command: cp source-content-updater-manifest.json.orig tcResources/source-content-updater-manifest.json

- name: build macOS
id: build
Expand Down
Loading

0 comments on commit e04e19d

Please sign in to comment.