Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
f2e6b77f
Commit
f2e6b77f
authored
Feb 12, 2021
by
Maurits van Beusekom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GitHub Actions configuration
parent
323dd288
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
112 additions
and
0 deletions
+112
-0
.github/workflows/permission_handler_plugin.yaml
+112
-0
No files found.
.github/workflows/permission_handler_plugin.yaml
0 → 100644
View file @
f2e6b77f
# This is a basic workflow to help you get started with Actions
name
:
permission_handler
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the develop branch
on
:
push
:
branches
:
[
master
,
develop
]
pull_request
:
branches
:
[
master
,
develop
]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs
:
# Job configuration for the permission_handler_platform_interface (Platform Interface Package)
permission_handler_platform_interface
:
# The type of runner that the job will run on
runs-on
:
macos-latest
env
:
source-directory
:
./permission_handler_platform_interface
# Steps represent a sequence of tasks that will be executed as part of the job
steps
:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-
uses
:
actions/checkout@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
beta'
# Download all Flutter packages the permission_handler_platform_interface depends on
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Run Flutter Format to ensure formatting is valid
-
name
:
Run Flutter Format
run
:
flutter format --set-exit-if-changed lib
working-directory
:
${{env.source-directory}}
# Run Flutter Analyzer
-
name
:
Run Flutter Analyzer
run
:
flutter analyze
working-directory
:
${{env.source-directory}}
# Run all unit-tests with code coverage
-
name
:
Run unit tests
run
:
flutter test --coverage
working-directory
:
${{env.source-directory}}
# Upload code coverage information
-
uses
:
codecov/codecov-action@v1
with
:
file
:
${{env.source-directory}}/coverage/lcov.info
# optional
name
:
permission_handler_platform_interface (Platform Interface Package)
# optional
fail_ci_if_error
:
true
# Job configuration for the permission_handler (App Facing Package)
permission_handler
:
# The type of runner that the job will run on
runs-on
:
macos-latest
env
:
source-directory
:
./permission_handler
example-directory
:
./permission_handler/example
# Steps represent a sequence of tasks that will be executed as part of the job
steps
:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-
uses
:
actions/checkout@v2
# Make sure the stable version of Flutter is available
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
'
beta'
# Download all Flutter packages the permission_handler depends on
-
name
:
Download dependencies
run
:
flutter pub get
working-directory
:
${{env.source-directory}}
# Run Flutter Format to ensure formatting is valid
-
name
:
Run Flutter Format
run
:
flutter format --set-exit-if-changed lib
working-directory
:
${{env.source-directory}}
# Run Flutter Analyzer
-
name
:
Run Flutter Analyzer
run
:
flutter analyze
working-directory
:
${{env.source-directory}}
# Run all unit-tests with code coverage
-
name
:
Run unit tests
run
:
flutter test --coverage
working-directory
:
${{env.source-directory}}
# Build Android version of the example app
-
name
:
Run Android build
run
:
flutter build apk --release
working-directory
:
${{env.example-directory}}
# Build iOS version of the example app
-
name
:
Run iOS build
run
:
flutter build ios --release --no-codesign
working-directory
:
${{env.example-directory}}
# Upload code coverage information
-
uses
:
codecov/codecov-action@v1
with
:
file
:
${{env.source-directory}}/coverage/lcov.info
# optional
name
:
permission_handler (App Facing Package)
# optional
fail_ci_if_error
:
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment