44 push :
55 branches :
66 - develop
7- - release
87 pull_request :
98 branches :
109 - develop
11- - release
1210
1311jobs :
14- docker :
15- name : Docker compose Build and Test
12+ macosclient :
13+ name : macOS Client
14+ runs-on : macos-11
15+ defaults :
16+ run :
17+ working-directory : ./App
18+ steps :
19+ - uses : actions/checkout@v2
20+ - uses : maxim-lobanov/setup-xcode@v1.1
21+ with :
22+ xcode-version : latest
23+ - name : Check Xcode version
24+ run : xcodebuild -version
25+ - name : Check Swift version
26+ run : swift --version
27+ - name : Build and test
28+ run : xcodebuild test -scheme App -destination 'platform=iOS Simulator,OS=15.0,name=iPhone 12'
29+ macoswebservices :
30+ name : macOS WebService
31+ runs-on : macos-11
32+ defaults :
33+ run :
34+ working-directory : ./WebService
35+ steps :
36+ - uses : actions/checkout@v2
37+ - uses : maxim-lobanov/setup-xcode@v1.1
38+ with :
39+ xcode-version : latest
40+ - name : Check Xcode version
41+ run : xcodebuild -version
42+ - name : Check Swift version
43+ run : swift --version
44+ - name : Build and test
45+ run : swift test
46+ linuxwebservices :
47+ name : Linux WebService ${{ matrix.linux }}
1648 runs-on : ubuntu-latest
17-
49+ container :
50+ image : swift:${{ matrix.linux }}
51+ strategy :
52+ matrix :
53+ linux : [latest, focal, amazonlinux2, centos8]
54+ defaults :
55+ run :
56+ working-directory : ./WebService
1857 steps :
19- - name : Checkout
20- uses : actions/checkout@v2
21-
22- - name : Start containers
23- run : docker-compose up -d --build
24-
25- - name : Test WebService and Traefik
26- run : sleep 3 && curl -sSf http://localhost:80/v1/contacts && curl -sSf http://localhost:8080/dashboard/#/
27-
28- - name : Stop containers
29- if : always()
30- run : docker-compose down
58+ - uses : actions/checkout@v2
59+ - name : Install libsqlite3
60+ if : ${{ !(startsWith( matrix.linux, 'centos' ) || startsWith( matrix.linux, 'amazonlinux' )) }}
61+ run : apt-get update && apt-get install -y --no-install-recommends libsqlite3-dev
62+ - name : Install libsqlite3
63+ if : startsWith( matrix.linux, 'amazonlinux' )
64+ run : yum update -y && yum install -y sqlite-devel
65+ - name : Install libsqlite3
66+ if : startsWith( matrix.linux, 'centos' )
67+ run : yum update -y --nobest && yum install -y sqlite-devel
68+ - name : Check Swift version
69+ run : swift --version
70+ - name : Build and test
71+ run : swift test -Xswiftc -Xfrontend -Xswiftc -sil-verify-none
0 commit comments