chore: try to fix issue with dagger and host platform #483
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: Test Swift SDK | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches-ignore: | |
- release/* | |
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: Build Engine | |
run: | | |
pushd ./flipt-engine-ffi | |
./build.sh swift | |
popd | |
- name: Run Integration Tests | |
env: | |
FLIPT_URL: "http://0.0.0.0:8080" | |
FLIPT_AUTH_TOKEN: "secret" | |
run: | | |
cd ./flipt-client-swift | |
swift test |