ci: Tagged releases #1246
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: UI Tests | |
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 | |
with: | |
cache: false | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create test env | |
env: | |
ENV_PATH: "MailUITests/Env.swift" | |
UITEST_ACCOUNT_EMAIL: ${{ secrets.UITEST_ACCOUNT_EMAIL }} | |
UITEST_ACCOUNT_PASSWORD: ${{ secrets.UITEST_ACCOUNT_PASSWORD }} | |
run: | | |
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: Setup | |
run: tuist install && tuist generate -n | |
- name: UITest | |
run: tuist test Mail-Workspace --device "iPhone 16 Pro" --test-targets "MailUITests/MailUITests" |