PROCESS: CouchDB is up to date. #72
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Acceptance tests | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install and run Argos with test data | |
run: | | |
export COUCHDB_USER="TO_BE_CHANGED" | |
export COUCHDB_PASSWORD="TO_BE_CHANGED" | |
docker-compose up -d | |
- name: Install test tools | |
run: npm install | |
- name: Wait for database service | |
uses: docker://benel/wait-for-response:1 | |
with: | |
args: http://localhost:5984/hyperglosae 401 5000 500 | |
- name: Enable public access | |
run: | | |
export COUCHDB_USER="TO_BE_CHANGED" | |
export COUCHDB_PASSWORD="TO_BE_CHANGED" | |
curl -X PUT -u "${COUCHDB_USER}:${COUCHDB_PASSWORD}" -s localhost:5984/hyperglosae/_security --data '{"members":{"roles":[]},"admins":{"roles":["_admin"]}}' | |
- name: Run tests | |
run : npm test | |
shell: 'script -q -e -c "bash {0}"' |