-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/adds-code-coverage' of https://github.com/input-ou…
…tput-hk/catalyst-voices into feat/adds-code-coverage
- Loading branch information
Showing
239 changed files
with
13,998 additions
and
536 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
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# Files and directories created by pub | ||
.dart_tool/ | ||
.packages | ||
build/ | ||
pubspec.lock | ||
pubspec_overrides.yaml | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
**/.dart_tool/ | ||
**/.packages | ||
**/build/ | ||
**/pubspec.lock | ||
**/pubspec_overrides.yaml | ||
**/.flutter-plugins | ||
**/.flutter-plugins-dependencies | ||
**/.idea/ | ||
**/*.iml | ||
**/Earthfile |
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,71 @@ | ||
name: Deploy Catalyst Voices Web App | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
AWS_REGION: eu-central-1 | ||
AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci | ||
EARTHLY_TARGET: docker | ||
ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com | ||
|
||
jobs: | ||
deploy-voices-web-app: | ||
name: Deploy Catalyst Voices Web App | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup CI | ||
uses: input-output-hk/catalyst-ci/actions/setup@master | ||
with: | ||
aws_role_arn: ${{ env.AWS_ROLE_ARN }} | ||
aws_region: ${{ env.AWS_REGION }} | ||
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }} | ||
|
||
- name: Build Flutter Web | ||
uses: input-output-hk/catalyst-ci/actions/run@master | ||
if: always() | ||
continue-on-error: false | ||
with: | ||
earthfile: ./catalyst_voices/ | ||
flags: --allow-privileged | ||
targets: build-web | ||
target_flags: --SECRETS_ARE_AVAILABLE=true, --SENTRY_DSN=${{ secrets.SENTRY_DSN }} | ||
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} | ||
artifact: "true" | ||
|
||
- name: Package Flutter Web | ||
uses: input-output-hk/catalyst-ci/actions/run@master | ||
if: always() | ||
continue-on-error: false | ||
with: | ||
earthfile: ./catalyst_voices/ | ||
flags: --allow-privileged | ||
targets: package | ||
target_flags: --SECRETS_ARE_AVAILABLE=true | ||
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} | ||
artifact: "true" | ||
|
||
- name: Publish Flutter Web | ||
uses: input-output-hk/catalyst-ci/actions/run@master | ||
if: always() | ||
continue-on-error: false | ||
with: | ||
earthfile: ./catalyst_voices/ | ||
flags: --allow-privileged | ||
targets: publish | ||
target_flags: --SECRETS_ARE_AVAILABLE=true | ||
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} | ||
artifact: "true" |
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: Publish Flutter Packages | ||
|
||
on: workflow_dispatch | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish-packages: | ||
name: Publish Flutter Packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
flutter-version: 3.22.1 | ||
- uses: bluefireteam/melos-action@v3 | ||
with: | ||
run-versioning: true | ||
publish-dry-run: true | ||
publish: true | ||
create-pr: true | ||
tag: true | ||
git-email: melos-action@users.noreply.github.com | ||
git-name: "Melos Action" |
53 changes: 53 additions & 0 deletions
53
.github/workflows/flutter-uikit-example-firebase-deploy.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: UIKit Flutter Example Firebase Hosting Deploy | ||
|
||
on: | ||
push: | ||
branches: "main" | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
AWS_REGION: eu-central-1 | ||
AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci | ||
EARTHLY_TARGET: docker | ||
ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com | ||
|
||
jobs: | ||
deploy-uikit-example: | ||
name: Deploy UIKit example on Firebase Hosting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup CI | ||
uses: input-output-hk/catalyst-ci/actions/setup@master | ||
with: | ||
aws_role_arn: ${{ env.AWS_ROLE_ARN }} | ||
aws_region: ${{ env.AWS_REGION }} | ||
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }} | ||
|
||
- name: Build Flutter Web | ||
uses: input-output-hk/catalyst-ci/actions/run@master | ||
if: always() | ||
continue-on-error: true | ||
with: | ||
earthfile: ./catalyst_voices/uikit_example | ||
flags: --allow-privileged | ||
targets: local-build-web | ||
target_flags: | ||
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} | ||
artifact: "false" | ||
|
||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
firebaseServiceAccount: "${{ secrets.UIKIT_FIREBASE_SERVICE_ACCOUNT }}" | ||
projectId: "${{ secrets.UIKIT_FIREBASE_PROJECT_ID }}" | ||
channelId: live | ||
entryPoint: catalyst_voices/uikit_example |
Oops, something went wrong.