Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added env to github action build-package #33

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
xcode-version: '16.0'
- uses: actions/checkout@v4
- run:
fastlane test
fastlane test --env dev
29 changes: 18 additions & 11 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,27 @@ default_platform(:ios)
platform :ios do

desc "Run package tests with coverage"
lane :test do
lane :code_coverage do

FileUtils.remove_dir "../xcov_output", true

test

xcov(
scheme: ENV['SCHEME'],
output_directory: "xcov_output",
is_swift_package: true
)

if ENV['CI'] != 'true'
sh 'open ../xcov_output/index.html'
end

end

desc "Run package tests"
lane :test do

params = {
package_path: '.',
scheme: ENV['SCHEME'],
Expand All @@ -35,16 +52,6 @@ lane :test do

run_tests(params)

xcov(
scheme: ENV['SCHEME'],
output_directory: "xcov_output",
is_swift_package: true
)

if ENV['CI'] != 'true'
sh 'open ../xcov_output/index.html'
end

end

desc "Deploy tags"
Expand Down
10 changes: 9 additions & 1 deletion fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

## iOS

### ios code_coverage

```sh
[bundle exec] fastlane ios code_coverage
```

Run package tests with coverage

### ios test

```sh
[bundle exec] fastlane ios test
```

Run package tests with coverage
Run package tests

### ios deploy

Expand Down
Loading