-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from maxisme/develop
Fix CI logic & add logging view
- Loading branch information
Showing
15 changed files
with
240 additions
and
97 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 |
---|---|---|
|
@@ -7,27 +7,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.version.outputs.VERSION }} | ||
deploy: ${{ steps.version.outputs.SHOULD_DEPLOY }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
- id: bump_version | ||
if: ${{ !github.event.issue.pull_request && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') }} | ||
if: ${{ github.ref == 'refs/heads/master' || (!github.event.issue.pull_request && github.ref == 'refs/heads/develop') }} | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_BRANCHES: .* | ||
RELEASE_BRANCHES: master | ||
DRY_RUN: true | ||
- id: version | ||
name: Create Version | ||
run: | | ||
if [ -n "${{ steps.bump_version.outputs.new_tag }}" ] | ||
then | ||
echo ::set-output name=SHOULD_DEPLOY::true | ||
echo ::set-output name=VERSION::${{ steps.bump_version.outputs.new_tag }} | ||
else | ||
echo ::set-output name=SHOULD_DEPLOY::false | ||
echo ::set-output name=VERSION::ci-$GITHUB_RUN_ID | ||
fi | ||
|
@@ -84,12 +81,11 @@ jobs: | |
with: | ||
name: notifi-dmg | ||
path: dmg/ | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
deploy: | ||
name: "Deploy" | ||
if: ${{ needs.version.outputs.deploy == true }} | ||
if: ${{ github.ref == 'refs/heads/master' || (!github.event.issue.pull_request && github.ref == 'refs/heads/develop') }} | ||
runs-on: macos-latest | ||
needs: [ checks, build, version ] | ||
steps: | ||
|
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 |
---|---|---|
|
@@ -43,3 +43,4 @@ app.*.symbols | |
# Obfuscation related | ||
app.*.map.json | ||
/test/failures/ | ||
/flog.db |
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
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,26 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:notifi/utils.dart'; | ||
|
||
class LogsScreen extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
toolbarHeight: 80, | ||
title: const Text('Logs'), | ||
), | ||
body: Container( | ||
padding: const EdgeInsets.only(left: 10.0, right: 10.0), | ||
child: FutureBuilder<ListView>( | ||
future: L.logListView(), | ||
// ignore: always_specify_types | ||
builder: (BuildContext context, AsyncSnapshot f) { | ||
if (f.connectionState != ConnectionState.done) { | ||
return const Center(child: CircularProgressIndicator()); | ||
} | ||
return f.data; | ||
}), | ||
)); | ||
} | ||
} |
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.