-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (52 loc) · 1.31 KB
/
test-swift-sdk.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test Swift SDK
on:
push:
branches:
- main
pull_request:
branches-ignore:
- release/flipt-client-*
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
test:
name: Integration Tests
runs-on: macos-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Install Flipt
uses: flipt-io/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.75.0
override: true
- name: Install Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: "5.9"
- name: run flipt
env:
FLIPT_STORAGE_TYPE: "local"
FLIPT_STORAGE_LOCAL_PATH: "./test/fixtures/testdata"
run: flipt&
- name: Install Rust Targets
run: |
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
- name: Build Engine
run: |
cd ./flipt-engine-ffi
./build.sh
cd ..
- name: Run Integration Tests
env:
FLIPT_URL: "http://0.0.0.0:8080"
FLIPT_AUTH_TOKEN: "secret"
run: |
cd ./flipt-client-swift
swift test