diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 00000000..aa41b0f8 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,24 @@ +name: build-test +run-name: ${{ github.actor }} is testing the viewer build +on: [push] +jobs: + test-viewer-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '16' + - run: npm install -g grunt-cli + - run: npm run deploy + - uses: GabrielBB/xvfb-action@v1 + with: + run: npm run test + - uses: "8398a7/action-slack@v3" + with: + status: ${{ job.status }} + fields: "repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: always() # Pick up events even if the job fails or is canceled. + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 62c438d1..00000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -sudo: false -language: node_js -node_js: - - "16" -env: - - CXX=g++-4.8 -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.8 - - dbus-x11 -before_install: - - "export DISPLAY=:99.0" -services: - - xvfb -install: - - npm install - - npm install -g grunt-cli -script: - - npm test diff --git a/README.md b/README.md index 348ee699..d0285762 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ The file viewer.html contains several endpoints to allow data to be be exported `getDataURL` - **\[optional]** the location of where you have previously stored the user's partially completed interview answer data. This is optional and only needed if you are setting up your website to remember the data that a user has entered so far. For example this is useful in cases such as where you let people register at your website and collect information that you can use in all interviews on your website and information that might be common to all interviews (like name, address, etc.). At present, this DOES NOT mean that the user can save the interview at a particular point and then come back to that same point. When they return to the interview later, they must start from the beginning - with the only advantage being that the data they had previously entered is already filled in. -`setDataURL` - **\[optional]** location of where you want to send the data from the interview when the user SENDs or SUBMITs the completed interview. This must be some website-based program that can "catch" the XML data stream that contains the user's answers to your interview in HotDocs .anx format and in an equivalent json format through an http POST. +`setDataURL` - **\[optional]** location of where you want to send the data from the interview when the user SENDs or SUBMITs the completed interview. This must be some website-based program that can "catch" the XML data stream that contains the user's answers to your interview in HotDocs .anx format and in an equivalent json format through an http POST. The xml/anx format can be accessed through the `AnswerKey` field of the body while the json format can be accessed through the `AnswerKeyJSON` field. `exitURL` - **\[optional]** location of where the user's browser is directed if they exit an interview without getting to the end. This is typically because they don't qualify to use the service. This is the DEFAULT URL. Inside the interview, the author can actually point the EXIT button to any URL they want and it will override this value. This URL is used only if the author has not specified a URL inside the interview for any EXIT buttons. diff --git a/demo/viewer/viewer.html b/demo/viewer/viewer.html index 17752e31..28f2610a 100644 --- a/demo/viewer/viewer.html +++ b/demo/viewer/viewer.html @@ -13,8 +13,8 @@ -
- + + @@ -53,9 +53,9 @@ diff --git a/index.dev.html b/index.dev.html index 677fdbf6..465cf592 100644 --- a/index.dev.html +++ b/index.dev.html @@ -59,6 +59,6 @@ errRepURL: '' })); - +