Skip to content

Commit

Permalink
Merge branch 'feat/adds-code-coverage' of https://github.com/input-ou…
Browse files Browse the repository at this point in the history
…tput-hk/catalyst-voices into feat/adds-code-coverage
  • Loading branch information
kukkok3 committed Jul 15, 2024
2 parents ddeba98 + 8fa5fd5 commit 29cc7db
Show file tree
Hide file tree
Showing 239 changed files with 13,998 additions and 536 deletions.
37 changes: 37 additions & 0 deletions .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@ addrr
adminer
afinet
androidx
anypolicy
appspot
Arissara
Arbritrary
ARGB
asmjs
asyncio
asyncpg
auditability
Autolayout
autorecalculates
autoresizing
backendpython
bech
bimap
bindgen
bkioshn
bluefireteam
BROTLI
Expand All @@ -21,7 +29,9 @@ Catalyst
CBOR
cborg
CEST
cdylib
cfbundle
Chotivichit
chromedriver
chrono
ciphertext
Expand All @@ -36,10 +46,13 @@ Cunego
Cupertino
dalek
DAPPLICATION
dbeaver
dbschema
dbsync
delegators
DIND
dockerhub
Dominik
dotenv
dotenvy
dotglob
Expand All @@ -52,10 +65,13 @@ Edgedriver
emurgo
encryptor
endfunction
Eternl
fetchval
fluttericon
fmtchk
fmtfix
fontawesome
fontello
formz
Formz
fuzzer
Expand All @@ -64,16 +80,20 @@ gcloud
geckodriver
genhtml
gethostname
Gitbook
gmtime
gradlew
headlessui
HIDPI
icudtl
ideascale
idents
Instantitation
integ
Intellij
iohk
iphoneos
jdbc
jetbrains
Joaquín
jorm
Expand All @@ -83,6 +103,9 @@ junitreport
junitxml
Keyhash
keyserver
KUBECONFIG
kubernetescrd
kubetail
lcov
lerp
Leshiy
Expand All @@ -99,6 +122,8 @@ metadatum
metadatums
metamap
mgrybyk
miniaturizable
minicbor
mithril
mitigations
moderations
Expand All @@ -113,6 +138,7 @@ NDEBUG
netifas
netkey
nextest
OCSP
Oleksandr
onboarded
oneshot
Expand All @@ -127,6 +153,7 @@ plpgsql
podfile
podhelper
postcss
Precertificate
preprod
projectcatalyst
Prokhorenko
Expand All @@ -135,6 +162,7 @@ Ptarget
pubkey
pubspec
pytest
qrcode
rapidoc
redoc
reloadable
Expand All @@ -149,12 +177,14 @@ rustc
rustdoc
rustdocflags
rustflags
rustfmt
rustls
rxdart
saibatizoku
schemathesis
Schemathesis
Scripthash
ScyllaDB
seckey
sendfile
slotno
Expand All @@ -163,6 +193,7 @@ Stefano
stevenj
stringzilla
Subkey
submiting
subosito
SYSROOT
tacho
Expand All @@ -177,6 +208,8 @@ toastify
Toastify
tojunit
Traceback
traefik
trailings
TXNZD
Typer
unawaited
Expand All @@ -194,7 +227,11 @@ voteplan
voteplans
wallclock
wasmtime
Wconditional
Werror
Wmissing
Wnullable
Woverlength
xcassets
xcconfig
xcfilelist
Expand Down
17 changes: 10 additions & 7 deletions .earthlyignore
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
71 changes: 71 additions & 0 deletions .github/workflows/build-flutter-web.yml
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"
32 changes: 32 additions & 0 deletions .github/workflows/flutter-publish-packages.yml
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 .github/workflows/flutter-uikit-example-firebase-deploy.yml
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
Loading

0 comments on commit 29cc7db

Please sign in to comment.