fix running action (#12) #18
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 2 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Set up CouchDB | |
| uses: ./ | |
| with: | |
| couchdb-version: "3.5.0" | |
| - name: Test that CouchDB can be accessed | |
| run: curl -sS -f http://127.0.0.1:5984/ | |
| - name: Test that system databases are there | |
| run: curl -sS -f http://admin:[email protected]:5984/_users | |
| - name: Test that the Erlang query server is enabled | |
| run: | | |
| curl -sS -f 'http://admin:[email protected]:5984/_users/_design/test' -X PUT -H 'Content-Type: application/json' --data '{"views":{"test":{"map":"fun({Doc}) -> Emit(proplists:get_value(<<\"name\">>, Doc, null), 1) end."}},"language":"erlang"}' | |
| curl -sS -f 'http://admin:[email protected]:5984/_users/_design/test/_view/test' |