-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1.02 KB
/
test-ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test on Ubuntu
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
ubuntu-test:
name: Run tests on Ubuntu with CouchDB ${{ matrix.couchdb }}
strategy:
fail-fast: false
matrix:
couchdb: [latest, "3.3", "3.2", "3.1"]
runs-on: ubuntu-latest
services:
swift:
image: swift:latest
steps:
- name: Start CouchDB
uses: iamssen/couchdb-github-action@master
with:
couchdb-version: ${{ matrix.couchdb }}
- name: Checkout
uses: actions/checkout@master
- name: Swift version
run: |
swift --version
- name: Test endpoint
run: |
curl -sS -f http://127.0.0.1:5984/
- name: Test authorization
run: |
curl -X POST -H "Content-Type: application/json; charset=utf-8" -d '{"name": "admin", "password": "password"}' http://127.0.0.1:5984/_session
- name: Swift test
run: COUCHDB_PASS=password swift test