Skip to content

Commit

Permalink
chore: re-enable ledger update (#1517)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <[email protected]>
  • Loading branch information
jleach authored Oct 5, 2023
1 parent 237e1a3 commit 4a2ed99
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 74 deletions.
1 change: 1 addition & 0 deletions .github/workflows/actions/update-ledgers/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ runs:
using: composite
steps:
- name: Update ledgers
shell: bash
run: |
node bifold/scripts/make-blocks.js
Expand Down
53 changes: 26 additions & 27 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
distribution: "zulu"
java-version: 11
cache: 'gradle'
cache: "gradle"
server-id: github
settings-path: ${{ github.workspace }}

Expand Down Expand Up @@ -118,9 +118,8 @@ jobs:
yarn install --immutable && \
git status
# Ledgers are missing namespace, not compatible.
# - name: Update ledgers
# uses: ./.github/workflows/actions/update-ledgers
- name: Update ledgers
uses: ./.github/workflows/actions/update-ledgers

- name: Install iOS dependencies
# if: steps.pod-cache.outputs.cache-hit != 'true' || steps.npm-cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -155,7 +154,7 @@ jobs:
echo "IAS_PORTAL_URL=${IAS_PORTAL_URL}" >>.env
echo "IAS_AGENT_INVITE_URL=${IAS_AGENT_INVITE_URL}" >>.env
echo "OCA_URL=${OCA_URL}" >>.env
- name: Set Push Notification Capability
working-directory: app/ios/AriesBifold
env:
Expand Down Expand Up @@ -205,10 +204,10 @@ jobs:
export_options: options.plist
ouput_artifact_ref: ios-artifact

# - name: Publish to GitHub Packages Registry
# run: mvn deploy:deploy-file -s $GITHUB_WORKSPACE/settings.xml -DgroupId=com.github.bcgov -DartifactId=bc-wallet -Dclassifier=ios -DrepositoryId=github -Durl=https://maven.pkg.github.com/$GITHUB_REPOSITORY -Dversion=${{ env.appBuildVersion }}.${{ env.appBuildNumber }} -DgeneratePom=false -Dpackaging=aab -Dfile=export/BCWallet.ipa
# env:
# GITHUB_TOKEN: ${{ github.token }}
# - name: Publish to GitHub Packages Registry
# run: mvn deploy:deploy-file -s $GITHUB_WORKSPACE/settings.xml -DgroupId=com.github.bcgov -DartifactId=bc-wallet -Dclassifier=ios -DrepositoryId=github -Durl=https://maven.pkg.github.com/$GITHUB_REPOSITORY -Dversion=${{ env.appBuildVersion }}.${{ env.appBuildNumber }} -DgeneratePom=false -Dpackaging=aab -Dfile=export/BCWallet.ipa
# env:
# GITHUB_TOKEN: ${{ github.token }}

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -267,15 +266,15 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
distribution: "zulu"
java-version: 11
cache: 'gradle'
cache: "gradle"
server-id: github
settings-path: ${{ github.workspace }}

# Ledgers are missing namespace, not compatible.
# - name: Updaet ledgers
# uses: ./.github/workflows/actions/update-ledgers
- name: Update ledgers
uses: ./.github/workflows/actions/update-ledgers

- name: Install dependencies
working-directory: ./
run: |
Expand Down Expand Up @@ -312,14 +311,14 @@ jobs:
keytool -list -v -keystore release.keystore -alias ${PLAY_STORE_JKS_ALIAS} -storepass:env PLAY_STORE_JKS_PASSWD | \
grep "SHA1"
# - name: Android debug build
# if: github.ref_name != 'main' || needs.check-android-secrets.outputs.isReleaseBuild != 'true'
# working-directory: app/android
# env:
# VERSION_CODE: ${{ env.appBuildNumber }}
# VERSION_NAME: ${{ env.appBuildVersion }}
# run: |
# ./gradlew --no-daemon bundleRelease
# - name: Android debug build
# if: github.ref_name != 'main' || needs.check-android-secrets.outputs.isReleaseBuild != 'true'
# working-directory: app/android
# env:
# VERSION_CODE: ${{ env.appBuildNumber }}
# VERSION_NAME: ${{ env.appBuildVersion }}
# run: |
# ./gradlew --no-daemon bundleRelease

- name: Android release build
#if: github.ref_name == 'main' && needs.check-android-secrets.outputs.isReleaseBuild == 'true'
Expand All @@ -335,10 +334,10 @@ jobs:
./gradlew assembleRelease && \
find . -type f -name '*.apk'
# - name: Publish to GitHub Packages Registry
# run: mvn deploy:deploy-file -s $GITHUB_WORKSPACE/settings.xml -DgroupId=com.github.bcgov -DartifactId=bc-wallet -Dclassifier=android -DrepositoryId=github -Durl=https://maven.pkg.github.com/$GITHUB_REPOSITORY -Dversion=${{ env.appBuildVersion }}.${{ env.appBuildNumber }} -DgeneratePom=false -Dpackaging=aab -Dfile=app/android/app/build/outputs/bundle/release/app-release.aab
# env:
# GITHUB_TOKEN: ${{ github.token }}
# - name: Publish to GitHub Packages Registry
# run: mvn deploy:deploy-file -s $GITHUB_WORKSPACE/settings.xml -DgroupId=com.github.bcgov -DartifactId=bc-wallet -Dclassifier=android -DrepositoryId=github -Durl=https://maven.pkg.github.com/$GITHUB_REPOSITORY -Dversion=${{ env.appBuildVersion }}.${{ env.appBuildNumber }} -DgeneratePom=false -Dpackaging=aab -Dfile=app/android/app/build/outputs/bundle/release/app-release.aab
# env:
# GITHUB_TOKEN: ${{ github.token }}
- name: List Artifacts
#if: github.ref_name == 'main' && needs.check-android-secrets.outputs.isReleaseBuild == 'true'
run: |
Expand Down
2 changes: 1 addition & 1 deletion bifold
72 changes: 26 additions & 46 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6096,7 +6096,7 @@ __metadata:
languageName: node
linkType: hard

"@types/lodash.startcase@npm:^4.4.6":
"@types/lodash.startcase@npm:^4.4.6, @types/lodash.startcase@npm:^4.4.7":
version: 4.4.7
resolution: "@types/lodash.startcase@npm:4.4.7"
dependencies:
Expand Down Expand Up @@ -7503,7 +7503,7 @@ __metadata:
"@formatjs/intl-relativetimeformat": 9.3.1
"@hyperledger/anoncreds-react-native": ^0.1.0
"@hyperledger/aries-askar-react-native": ^0.1.1
"@hyperledger/aries-oca": 1.0.0-alpha.72
"@hyperledger/aries-oca": ^1.0.0
"@hyperledger/indy-vdr-react-native": ^0.1.0
"@react-native-async-storage/async-storage": 1.15.11
"@react-native-community/eslint-config": ^3.2.0
Expand All @@ -7520,21 +7520,21 @@ __metadata:
"@testing-library/react-native": ^12.3.0
"@types/jest": ^29.5.5
"@types/lodash.flatten": ^4.4.6
"@types/lodash.startcase": ^4.4.6
"@types/lodash.startcase": ^4.4.7
"@types/react": ^18.0.24
"@types/react-native": 0.63.53
"@types/react-native": 0.71.5
"@types/react-native-vector-icons": ^6.4.6
"@types/react-test-renderer": ^18.0.1
"@typescript-eslint/eslint-plugin": ^6.6.0
"@typescript-eslint/parser": ^6.6.0
axios: ^0.21.0
axios: ^1.4.0
babel-jest: ^27.5.1
babel-plugin-module-resolver: ^5.0.0
commitlint: ^17.7.1
eslint: ^8.48.0
eslint-import-resolver-typescript: ^2.5.0
eslint-plugin-import: ^2.28.1
eslint-plugin-prettier: ^3.3.1
eslint-plugin-prettier: ^4.0.0
husky: ^7.0.0
i18next: ^21.4.0
install-peerdeps: ^3.0.3
Expand All @@ -7549,13 +7549,13 @@ __metadata:
patch-package: ^6.4.4
prettier: ^2.8.4
query-string: ^7.0.1
react: ^18.2.0
react: "*"
react-i18next: 11.13.0
react-native: ^0.72.4
react-native: "*"
react-native-animated-pagination-dots: ^0.1.72
react-native-argon2: ^2.0.1
react-native-bouncy-checkbox: ^3.0.5
react-native-builder-bob: ^0.18.2
react-native-builder-bob: ^0.21.3
react-native-camera: ^3.31.1
react-native-collapsible: ^1.6.1
react-native-config: ^1.4.2
Expand All @@ -7565,9 +7565,9 @@ __metadata:
react-native-fs: ^2.16.6
react-native-gesture-handler: ^1.10.3
react-native-get-random-values: ^1.7.0
react-native-gifted-chat: ^2.4.0
react-native-gifted-chat: "*"
react-native-keychain: ^8.1.1
react-native-localize: ^2.1.5
react-native-localize: ^2.2.4
react-native-permissions: ^3.8.4
react-native-qrcode-svg: ^6.2.0
react-native-reanimated: ^3.4.2
Expand All @@ -7582,7 +7582,7 @@ __metadata:
react-native-uuid: ^2.0.1
react-native-vector-icons: ^10.0.0
react-test-renderer: ^18.2.0
typescript: 4.4.3
typescript: ^5.0.4
uuid: ^9.0.0
peerDependencies:
"@aries-framework/anoncreds": ^0.4.0
Expand All @@ -7604,7 +7604,7 @@ __metadata:
"@formatjs/intl-relativetimeformat": 9.3.1
"@hyperledger/anoncreds-react-native": ^0.1.0
"@hyperledger/aries-askar-react-native": ^0.1.1
"@hyperledger/aries-oca": 1.0.0-alpha.72
"@hyperledger/aries-oca": 0.0.0
"@hyperledger/indy-vdr-react-native": ^0.1.0
"@react-native-async-storage/async-storage": 1.15.11
"@react-native-community/masked-view": 0.1.11
Expand All @@ -7614,15 +7614,15 @@ __metadata:
"@react-navigation/devtools": ^6.0.8
"@react-navigation/native": 6.0.6
"@react-navigation/stack": 6.0.11
axios: ^0.21.0
axios: ^1.4.0
i18next: ^21.4.0
lodash.flatten: ^4.4.0
lodash.startcase: ^4.4.0
moment: ^2.29.4
query-string: ^7.0.1
react: ^18.2.0
react: "*"
react-i18next: 11.13.0
react-native: ^0.72.4
react-native: "*"
react-native-animated-pagination-dots: ^0.1.72
react-native-argon2: ^2.0.1
react-native-bouncy-checkbox: ^3.0.5
Expand All @@ -7649,7 +7649,7 @@ __metadata:
react-native-toast-message: ^2.1.6
react-native-uuid: ^2.0.1
react-native-vector-icons: ^10.0.0
uuid: 8.3.2
uuid: ^9.0.0
bin:
bifold: bin/bifold
languageName: unknown
Expand Down Expand Up @@ -11998,7 +11998,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-prettier@npm:^4.2.1":
"eslint-plugin-prettier@npm:^4.0.0, eslint-plugin-prettier@npm:^4.2.1":
version: 4.2.1
resolution: "eslint-plugin-prettier@npm:4.2.1"
dependencies:
Expand Down Expand Up @@ -19776,9 +19776,9 @@ __metadata:
languageName: node
linkType: hard

"react-native-builder-bob@npm:^0.18.2":
version: 0.18.3
resolution: "react-native-builder-bob@npm:0.18.3"
"react-native-builder-bob@npm:^0.21.3":
version: 0.21.3
resolution: "react-native-builder-bob@npm:0.21.3"
dependencies:
"@babel/core": ^7.18.5
"@babel/plugin-proposal-class-properties": ^7.17.12
Expand All @@ -19805,7 +19805,7 @@ __metadata:
optional: true
bin:
bob: bin/bob
checksum: 98770d20cecfde7f2b44bc0ad0222b4764f35703a2a20981b96b20250ccbe9ab946140a635e38f3786554286020a958cfc85c2b2934c66863f44678bd1bc22f0
checksum: 0a7b05926556dcba0ed9dbadd1316136886bcb054b2229ff58af6ba71178c0add0bcbd31d78b11683f05cacfd8ba408f1d50d7ec6c413ae694a51b11f02ea2de
languageName: node
linkType: hard

Expand Down Expand Up @@ -19944,7 +19944,7 @@ __metadata:
languageName: node
linkType: hard

"react-native-gifted-chat@npm:^2.4.0":
"react-native-gifted-chat@npm:*, react-native-gifted-chat@npm:^2.4.0":
version: 2.4.0
resolution: "react-native-gifted-chat@npm:2.4.0"
dependencies:
Expand Down Expand Up @@ -20003,7 +20003,7 @@ __metadata:
languageName: node
linkType: hard

"react-native-localize@npm:^2.1.5":
"react-native-localize@npm:^2.1.5, react-native-localize@npm:^2.2.4":
version: 2.2.6
resolution: "react-native-localize@npm:2.2.6"
peerDependencies:
Expand Down Expand Up @@ -23062,16 +23062,6 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:4.4.3":
version: 4.4.3
resolution: "typescript@npm:4.4.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 05823f21796d450531a7e4ab299715d38fd9ded0e4ce7400876053f4b5166ca3dde7a68cecfe72d9086039f03c0b6edba36516fb10ed83c5837d9600532ea4c2
languageName: node
linkType: hard

"typescript@npm:4.9.5":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
Expand All @@ -23082,7 +23072,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.6.4 || ^5.0.0":
"typescript@npm:^4.6.4 || ^5.0.0, typescript@npm:^5.0.4":
version: 5.2.2
resolution: "typescript@npm:5.2.2"
bin:
Expand All @@ -23092,16 +23082,6 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:[email protected]#~builtin<compat/typescript>":
version: 4.4.3
resolution: "typescript@patch:typescript@npm%3A4.4.3#~builtin<compat/typescript>::version=4.4.3&hash=bbeadb"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 33a916819907e819430802c50405f18c187448d678696a81545f494a7ec16207f8c15340c945df62109bd1d951091a9f15f3d2eb931a3c889f962c8509017697
languageName: node
linkType: hard

"typescript@patch:[email protected]#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=ad5954"
Expand All @@ -23112,7 +23092,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@^4.6.4 || ^5.0.0#~builtin<compat/typescript>":
"typescript@patch:typescript@^4.6.4 || ^5.0.0#~builtin<compat/typescript>, typescript@patch:typescript@^5.0.4#~builtin<compat/typescript>":
version: 5.2.2
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=ad5954"
bin:
Expand Down

0 comments on commit 4a2ed99

Please sign in to comment.