Skip to content

Commit

Permalink
Restore Fastlane lanes
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Aug 16, 2023
1 parent 688119b commit 4bdef18
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 1 deletion.
37 changes: 36 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,41 @@ platform :ios do
setup_circle_ci if defined? setup_circle_ci
end

desc "Run code linter"
lane :lint do
swiftlint(
mode: :lint,
config_file: '.swiftlint.yml',
reporter: 'emoji',
raise_if_swiftlint_error: true
)
end

desc "Runs all the tests"
lane :test do |options|
scheme = options[:scheme]
device = options[:device]
scan(
scheme: scheme,
device: device,
clean: true,
skip_build: true,
code_coverage: true
)
end

desc "Cocoapods library lint"
lane :pod_lint do
pod_lib_lint(verbose: false, allow_warnings: true, platforms: 'ios,osx,tvos')
end

desc "Runs all the tests in a CI environment"
lane :ci do
# TODO: Run rest of platforms
lint
test
end

desc "Tags the release and pushes the Podspec to CocoaPods"
lane :release do
perform_release target: 'Auth0.iOS'
Expand Down Expand Up @@ -39,4 +74,4 @@ platform :ios do
File.write("#{docs_dir}/index.html", redirect_file)
end
end
end
end
32 changes: 32 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,38 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

## iOS

### ios lint

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

Run code linter

### ios test

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

Runs all the tests

### ios pod_lint

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

Cocoapods library lint

### ios ci

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

Runs all the tests in a CI environment

### ios release

```sh
Expand Down
4 changes: 4 additions & 0 deletions fastlane/Scanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
scheme "Auth0.iOS"
devices ["iPhone 14"]

clean true

0 comments on commit 4bdef18

Please sign in to comment.