Skip to content

Commit

Permalink
Add run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielnedersantos committed Nov 22, 2024
1 parent 7f7ec8b commit 4cf6810
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/sonar_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,42 @@ name: CI
on:
pull_request:
types: [opened, edited, reopened, synchronize]
workflow_dispatch:

env:
GH_TOKEN: ${{ secrets.GIT_TOKEN_SECRET }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.number }}

workflow_dispatch:

jobs:
build:
runs-on: macOS-latest

steps:
# Checkout do repositório
- uses: actions/checkout@v3

# Configurar Ruby para CocoaPods
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2' # Ajuste conforme necessário

# Instalar CocoaPods e dependências
- name: Install CocoaPods
run: |
gem install cocoapods
pod install --project-directory=Example
# Listar arquivos para depuração
- name: List files
run: ls -la Example

# Executar testes
- name: Test
run: |
ls -la
xcodebuild -workspace Example/TrustlySDK.xcworkspace -scheme TrustlySDK-Example -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' test
xcodebuild -workspace Example/TrustlySDK.xcworkspace \
-scheme TrustlySDK-Example \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' \
test

0 comments on commit 4cf6810

Please sign in to comment.