refactor: Use transaction based APIs for Mail #3575
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: CI workflow | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build and Test project | |
runs-on: [ self-hosted, iOS ] | |
steps: | |
- name: Cancel Previous Runs | |
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 | |
env: | |
ENV_PATH: "MailTests/Env.swift" | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
USER_ID: ${{ secrets.USER_ID }} | |
MAILBOX_ID: ${{ secrets.MAILBOX_ID }} | |
run: | | |
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 install && tuist build --generate "Infomaniak Mail" | |
- name: Test | |
run: tuist test Mail --test-targets MailTests/MailApiTests |