Skip to content

Create CI

Create CI #4

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: |
pod install --repo-update --clean-install --project-directory=24hane-iOS/
xcodebuild clean test -workspace 24hane-iOS.xcworkspace -scheme 24hane-iOS -destination 'platform=iOS simulator,name=iPhone 15 pro,OS=latest'
- name: Run Swiftlint
run: swiftlint --config 24hane-iOS/.swiftlint.yml
- name: Run tests
run: swift test -v