-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
360 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Coverage Coverage Report | ||
|
||
on: | ||
push: | ||
branches: | ||
master | ||
pull_request: | ||
branches: | ||
master | ||
|
||
jobs: | ||
codecov_io: | ||
name: "Codecov.io" | ||
runs-on: ubuntu-latest | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: '2.0.5' | ||
channel: 'stable' | ||
- name: Generate coverage report | ||
run: flutter test --coverage --coverage-path ./coverage/lcov.info | ||
- name: Send to codecov.io | ||
run: bash <(curl -s https://codecov.io/bash) | ||
- run: ls -al ./coverage | ||
- name: "Upload coverage" | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: coverage | ||
path: ./coverage | ||
|
||
coveralls_io: | ||
name: "Coveralls.io" | ||
needs: codecov_io | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: "Download coverage" | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: coverage | ||
path: ./coverage | ||
- name: "Setup ruby" | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.6' | ||
- run: gem install coveralls-lcov | ||
- run: cat ./coverage/lcov.info | ||
- name: Send to coveralls.io | ||
run: coveralls-lcov --repo-token $COVERALLS_TOKEN coverage/lcov.info | ||
env: | ||
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Flutter CI | ||
|
||
on: | ||
push: | ||
branches: | ||
master | ||
pull_request: | ||
branches: | ||
master | ||
|
||
jobs: | ||
build: | ||
name: Build & Test on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: '2.0.5' | ||
channel: 'stable' | ||
- run: flutter packages get | ||
- run: flutter format --set-exit-if-changed . | ||
- run: flutter analyze . | ||
- run: flutter test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Pub Publish Test | ||
|
||
on: | ||
push: | ||
branches: | ||
master | ||
pull_request: | ||
branches: | ||
master | ||
|
||
jobs: | ||
build: | ||
name: Publishing Test (Dry Run) | ||
runs-on: ubuntu-latest | ||
env: | ||
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: '2.0.5' | ||
channel: 'stable' | ||
- name: Documenting package | ||
run: | | ||
echo "FLUTTER_ROOT=$FLUTTER_HOME" >> $GITHUB_ENV | ||
bash scripts/credentials.sh | ||
rm -rf scripts/ | ||
make | ||
make deps | ||
pub global activate dartdoc | ||
make docs | ||
pub publish -n -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Pub Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Publishing | ||
runs-on: ubuntu-latest | ||
env: | ||
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: '2.0.5' | ||
channel: 'stable' | ||
- name: Documenting package | ||
run: | | ||
echo "FLUTTER_ROOT=$FLUTTER_HOME" >> $GITHUB_ENV | ||
bash scripts/credentials.sh | ||
rm -rf scripts/ | ||
make | ||
make deps | ||
pub global activate dartdoc | ||
make docs | ||
pub publish -f -v |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ ! -e ~/.pub-cache/credentials.json ]]; then | ||
mkdir -p ~/.pub-cache | ||
touch ~/.pub-cache/credentials.json | ||
fi | ||
|
||
echo $PUB_CREDENTIALS > ~/.pub-cache/credentials.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.