Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanzanella committed Nov 28, 2022
1 parent b8279f8 commit f11da6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 32 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@

name: CI

on: [push]

jobs:
build:

runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
- name: Bundle install
working-directory: ./
run: bundle install

- name: Unit tests
run: bundle exec fastlane tests

- name: SPM lint
run: bundle exec fastlane spm_lint
- uses: actions/checkout@v2
- name: Bundle install
working-directory: ./
run: bundle install

- name: Carthage lint
run: bundle exec fastlane carthage_lint
- name: Unit tests
run: bundle exec fastlane tests

- name: Pod lint
run: bundle exec fastlane pod_lint
- name: Pod lint
run: bundle exec fastlane pod_lint
20 changes: 4 additions & 16 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ platform :ios do
lane :tests do
scan(
scheme: ENV["SCHEME"],
clean: true
package_path: ".",
device: "iPhone 8",
clean: true,
result_bundle: true
)
end

Expand All @@ -15,21 +18,6 @@ platform :ios do
pod_lib_lint(allow_warnings: true)
end

desc "Carthage linting"
lane :carthage_lint do
carthage(
command: "build",
no_skip_current: true,
platform: "iOS",
use_xcframeworks: true
)
end

desc "SPM linting"
lane :spm_lint do
UI.sucess "Done when testing"
end

desc "Release a new version"
lane :release do |options|
target_version = options[:version]
Expand Down

0 comments on commit f11da6e

Please sign in to comment.