From d3a37ae6c21df7bb38e5625c9cd718a79cb3036a Mon Sep 17 00:00:00 2001 From: julian-CStack <97684800+julian-CStack@users.noreply.github.com> Date: Tue, 27 Sep 2022 09:09:28 -0600 Subject: [PATCH 1/3] add bch --- .github/workflows/test.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 02876ffad..488f278d1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -54,12 +54,23 @@ jobs: Write-Output "::set-output name=SECRET_FILE_FIRO::$secretFileFiro"; Write-Output "::set-output name=SECRET_FILE_FIRO_HASH::$($secretFileFiroHash.Hash)"; Write-Output "Secret file $secretFileFiro has hash $($secretFileFiroHash.Hash)"; + + + $secretFileBitcoinCash = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "test/services/coins/bitcoincash/bitcoincash_wallet_test_parameters.dart"; + $encodedBytes = [System.Convert]::FromBase64String($env:BITCOINCASH_TEST); + Set-Content $secretFileBitcoinCash -Value $encodedBytes -AsByteStream; + $secretFileBitcoinCashHash = Get-FileHash $secretFileBitcoinCash; + Write-Output "::set-output name=SECRET_FILE_BITCOINCASH::$secretFileBitcoinCash"; + Write-Output "::set-output name=SECRET_FILE_BITCOINCASH_HASH::$($secretFileBitcoinCashHash.Hash)"; + Write-Output "Secret file $secretFileBitcoinCash has hash $($secretFileBitcoinCashHash.Hash)"; + shell: pwsh env: CHANGE_NOW: ${{ secrets.CHANGE_NOW }} BITCOIN_TEST: ${{ secrets.BITCOIN_TEST }} DOGECOIN_TEST: ${{ secrets.DOGECOIN_TEST }} FIRO_TEST: ${{ secrets.FIRO_TEST }} + BITCOINCASH_TEST: ${{ secrets.BITCOINCASH_TEST }} # - name: Analyze # run: flutter analyze - name: Test @@ -76,6 +87,7 @@ jobs: Remove-Item -Path $env:BITCOIN_TEST; Remove-Item -Path $env:DOGECOIN_TEST; Remove-Item -Path $env:FIRO_TEST; + Remove-Item -Path $env:BITCOINCASH_TEST; shell: pwsh if: always() env: @@ -83,3 +95,4 @@ jobs: BITCOIN_TEST: ${{ steps.secret-file1.outputs.SECRET_FILE_BITCOIN }} DOGECOIN_TEST: ${{ steps.secret-file1.outputs.SECRET_FILE_DOGECOIN }} FIRO_TEST: ${{ steps.secret-file1.outputs.SECRET_FILE_FIRO }} + BITCOINCASH_TEST: ${{ steps.secret-file1.outputs.SECRET_FILE_BITCOINCASH }} From b97b971d5f2d83a58da4115ca2bbcb19629fafe3 Mon Sep 17 00:00:00 2001 From: julian-CStack <97684800+julian-CStack@users.noreply.github.com> Date: Tue, 27 Sep 2022 09:12:38 -0600 Subject: [PATCH 2/3] add nmc --- .github/workflows/test.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 488f278d1..a6f9c381d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -55,7 +55,6 @@ jobs: Write-Output "::set-output name=SECRET_FILE_FIRO_HASH::$($secretFileFiroHash.Hash)"; Write-Output "Secret file $secretFileFiro has hash $($secretFileFiroHash.Hash)"; - $secretFileBitcoinCash = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "test/services/coins/bitcoincash/bitcoincash_wallet_test_parameters.dart"; $encodedBytes = [System.Convert]::FromBase64String($env:BITCOINCASH_TEST); Set-Content $secretFileBitcoinCash -Value $encodedBytes -AsByteStream; @@ -64,6 +63,14 @@ jobs: Write-Output "::set-output name=SECRET_FILE_BITCOINCASH_HASH::$($secretFileBitcoinCashHash.Hash)"; Write-Output "Secret file $secretFileBitcoinCash has hash $($secretFileBitcoinCashHash.Hash)"; + $secretFileNamecoin = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "test/services/coins/namecoin/namecoin_wallet_test_parameters.dart"; + $encodedBytes = [System.Convert]::FromBase64String($env:NAMECOIN_TEST); + Set-Content $secretFileNamecoin -Value $encodedBytes -AsByteStream; + $secretFileNamecoinHash = Get-FileHash $secretFileNamecoin; + Write-Output "::set-output name=SECRET_FILE_FIRO::$secretFileNamecoin"; + Write-Output "::set-output name=SECRET_FILE_FIRO_HASH::$($secretFileNamecoinHash.Hash)"; + Write-Output "Secret file $secretFileNamecoin has hash $($secretFileNamecoinHash.Hash)"; + shell: pwsh env: CHANGE_NOW: ${{ secrets.CHANGE_NOW }} @@ -71,6 +78,7 @@ jobs: DOGECOIN_TEST: ${{ secrets.DOGECOIN_TEST }} FIRO_TEST: ${{ secrets.FIRO_TEST }} BITCOINCASH_TEST: ${{ secrets.BITCOINCASH_TEST }} + NAMECOIN_TEST: ${{ secrets.NAMECOIN_TEST }} # - name: Analyze # run: flutter analyze - name: Test @@ -88,6 +96,7 @@ jobs: Remove-Item -Path $env:DOGECOIN_TEST; Remove-Item -Path $env:FIRO_TEST; Remove-Item -Path $env:BITCOINCASH_TEST; + Remove-Item -Path $env:NAMECOIN_TEST; shell: pwsh if: always() env: @@ -96,3 +105,4 @@ jobs: DOGECOIN_TEST: ${{ steps.secret-file1.outputs.SECRET_FILE_DOGECOIN }} FIRO_TEST: ${{ steps.secret-file1.outputs.SECRET_FILE_FIRO }} BITCOINCASH_TEST: ${{ steps.secret-file1.outputs.SECRET_FILE_BITCOINCASH }} + NAMECOIN_TEST: ${{ steps.secret-file1.outputs.SECRET_FILE_NAMECOIN }} From 6b45fa5c82560627059ac21c9bec9d735df095bc Mon Sep 17 00:00:00 2001 From: julian-CStack <97684800+julian-CStack@users.noreply.github.com> Date: Thu, 29 Sep 2022 17:59:27 -0600 Subject: [PATCH 3/3] Update test.yaml --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a6f9c381d..fe6dbfbb0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -67,8 +67,8 @@ jobs: $encodedBytes = [System.Convert]::FromBase64String($env:NAMECOIN_TEST); Set-Content $secretFileNamecoin -Value $encodedBytes -AsByteStream; $secretFileNamecoinHash = Get-FileHash $secretFileNamecoin; - Write-Output "::set-output name=SECRET_FILE_FIRO::$secretFileNamecoin"; - Write-Output "::set-output name=SECRET_FILE_FIRO_HASH::$($secretFileNamecoinHash.Hash)"; + Write-Output "::set-output name=SECRET_FILE_NAMECOIN::$secretFileNamecoin"; + Write-Output "::set-output name=SECRET_FILE_NAMECOIN_HASH::$($secretFileNamecoinHash.Hash)"; Write-Output "Secret file $secretFileNamecoin has hash $($secretFileNamecoinHash.Hash)"; shell: pwsh