diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecdd878a5..5929cb615 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - uses: jdx/mise-action@v2 - name: Checkout uses: actions/checkout@v2 - name: Create test env @@ -26,6 +27,6 @@ jobs: touch $ENV_PATH echo -e "enum Env {\n static let token = \"$ACCESS_TOKEN\"\n static let userId = $USER_ID\n static let mailboxId = $MAILBOX_ID\n}" > $ENV_PATH - name: Build - run: .tuist-bin/tuist build --generate "Infomaniak Mail" + run: tuist install && tuist build --generate "Infomaniak Mail" - name: Test - run: .tuist-bin/tuist test Mail --test-targets MailTests/MailApiTests + run: tuist test Mail --test-targets MailTests/MailApiTests diff --git a/.github/workflows/uitests.yml b/.github/workflows/uitests.yml index 5721596c1..3f02f0a8d 100644 --- a/.github/workflows/uitests.yml +++ b/.github/workflows/uitests.yml @@ -14,6 +14,7 @@ jobs: uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - uses: jdx/mise-action@v2 - name: Checkout uses: actions/checkout@v2 - name: Create test env @@ -25,4 +26,4 @@ jobs: touch $ENV_PATH echo -e "enum Env {\n static let testAccountEmail = \"$UITEST_ACCOUNT_EMAIL\"\n static let testAccountPassword = \"$UITEST_ACCOUNT_PASSWORD\"\n}" > $ENV_PATH - name: UITest - run: .tuist-bin/tuist test Mail --device "iPhone 15 Pro" --test-targets MailUITests/MailUITests + run: tuist install && tuist test Mail --device "iPhone 15 Pro" --test-targets MailUITests/MailUITests