diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml index a6b0e74..a73fa0f 100644 --- a/.github/workflows/lint-and-test.yaml +++ b/.github/workflows/lint-and-test.yaml @@ -34,44 +34,44 @@ jobs: - name: run lint run: flutter analyze - # test-ios: - # name: Run iOS tests - # runs-on: [self-hosted, macOS] - # needs: lint - # defaults: - # run: - # working-directory: ./client/ios - - # steps: - # - name: Checkout - # uses: actions/checkout@v4 - # with: - # submodules: "recursive" - # token: ${{ secrets.PRIVATE_REPO_CLONING_TOKEN }} - - # - name: setup flutter - # uses: subosito/flutter-action@v2 - # with: - # channel: stable - # flutter-version: 3.32.6 - - # - name: get deps - # run: flutter pub get - - # - name: Create BoringTun directory - # run: mkdir -p VPNExtension/BoringTun - - # - name: Generate boringtun bindings - # run: cd boringtun && ./bindings.sh - - # - name: Update CocoaPods - # run: pod repo update - - # # - name: build project - # # run: flutter build ios - - # - name: Unlock Keychain - # run: security -v unlock-keychain -p "${{ secrets.KEYCHAIN_PASSWORD }}" /Users/admin/Library/Keychains/login.keychain - - # - name: run plugin tests - # run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner + test-ios: + name: Run iOS tests + runs-on: [self-hosted, macOS] + needs: lint + defaults: + run: + working-directory: ./client/ios + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: "recursive" + token: ${{ secrets.PRIVATE_REPO_CLONING_TOKEN }} + + - name: setup flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.32.6 + + - name: get deps + run: flutter pub get + + - name: Create BoringTun directory + run: mkdir -p VPNExtension/BoringTun + + - name: Generate boringtun bindings + run: cd boringtun && ./bindings.sh + + - name: Update CocoaPods + run: pod repo update + + # - name: build project + # run: flutter build ios + + - name: Unlock Keychain + run: security -v unlock-keychain -p "${{ secrets.KEYCHAIN_PASSWORD }}" /Users/admin/Library/Keychains/login.keychain + + - name: run plugin tests + run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner