-
-
Notifications
You must be signed in to change notification settings - Fork 872
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disabled Firebase Hosting Previews on PRs (#1521)
This is to fix an error resulting from lack of permissions. It is not possible ATM to create preview URLs for fork-based PRs.
- Loading branch information
1 parent
1bbea9d
commit 00285e3
Showing
6 changed files
with
115 additions
and
110 deletions.
There are no files selected for viewing
24 changes: 1 addition & 23 deletions
24
.github/workflows/test.yml → .github/workflows/analyse-test.yml
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,61 @@ | ||
name: Build IO Example Apps | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build-android: | ||
name: "Android" | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./example | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Setup Java 17 Environment | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
- name: Setup Flutter Environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
- name: Build Android Application | ||
run: flutter build apk | ||
- name: Archive Artifact | ||
uses: actions/upload-artifact@v3.1.2 | ||
with: | ||
name: apk-build | ||
path: example/build/app/outputs/apk/release | ||
if-no-files-found: error | ||
|
||
build-windows: | ||
name: "Windows" | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
working-directory: ./example | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Setup Java 17 Environment | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
- name: Setup Flutter Environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
- name: Build Windows Application | ||
run: flutter build windows | ||
- name: Create Windows Application Installer | ||
run: iscc "windowsApplicationInstallerSetup.iss" | ||
working-directory: . | ||
- name: Archive Artifact | ||
uses: actions/upload-artifact@v3.1.2 | ||
with: | ||
name: exe-build | ||
path: windowsTemp/WindowsApplication.exe | ||
if-no-files-found: error |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Score Package | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
score-package: | ||
name: "Score Package" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Run Dart Package Analyser | ||
uses: axel-op/dart-package-analyzer@master | ||
id: analysis | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Check Package Scores | ||
env: | ||
TOTAL: ${{ steps.analysis.outputs.total }} | ||
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }} | ||
run: | | ||
if (( $TOTAL < $TOTAL_MAX )) | ||
then | ||
echo Package score less than available score. Improve the score! | ||
exit 1 | ||
fi |