Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai8804858 committed Mar 1, 2024
1 parent 7122504 commit 306642a
Show file tree
Hide file tree
Showing 37 changed files with 1,915 additions and 4 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Install tools
run: brew install swiftlint

- name: Run SwiftLint
run: make lint

build:
name: Build
runs-on: macos-14
strategy:
matrix:
config: ['debug', 'release']
steps:
- uses: actions/checkout@v4

- name: Install tools
run: gem install xcpretty

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Build platforms in ${{ matrix.config }}
run: make CONFIG=${{ matrix.config }} build-all-platforms

test:
name: Test
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Install tools
run: gem install xcpretty

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Run tests
run: make CONFIG=debug test-all-platforms
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ playground.xcworkspace
# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.swiftpm/
.build/
Packages/

# CocoaPods
#
Expand Down Expand Up @@ -88,3 +87,5 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

.DS_Store
8 changes: 8 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
included:
- Sources
- Tests
- Example
- Package.swift
- [email protected]
excluded:
- .build
Loading

0 comments on commit 306642a

Please sign in to comment.