Skip to content

Commit

Permalink
added env to github action build-package
Browse files Browse the repository at this point in the history
  • Loading branch information
stzouvaras committed Dec 2, 2024
1 parent 887712a commit c1b9ebe
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
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

0 comments on commit c1b9ebe

Please sign in to comment.