Skip to content

Test target refactoring #52

Test target refactoring

Test target refactoring #52

Workflow file for this run

name: Validation and Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# CocoaPodsValidation:
# runs-on: macos-11
# steps:
# - uses: actions/checkout@v2
# - name: Cocoapods
# run: pod lib lint --allow-warnings
UnitTests:
steps:

Check failure on line 19 in .github/workflows/ohmysql.yml

View workflow run for this annotation

GitHub Actions / Validation and Tests

Invalid workflow file

The workflow is not valid. .github/workflows/ohmysql.yml (Line: 19, Col: 5): Required property is missing: runs-on
- name: Setup MySQL
uses: ankane/setup-mysql@v1
with:
mysql-version: 8.0
database: tests
- name: Install xcodegen
run: brew install xcodegen
- name: Generate project
run: xcodegen
- name: Run tests
run: xcodebuild -project OHMySQL.xcodeproj -scheme "OHMySQLTests" -parallel-testing-enabled NO -destination "platform=iOS Simulator,OS=latest,name=iPhone 14" test \
USER_NAME='root' \
USER_PASSWORD='' \
DB_NAME='tests' \
DB_HOST='localhost' \
DB_PORT='3306' \
DB_SOCKET='/tmp/mysql.sock' | xcpretty