mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-28 10:08:46 +00:00
change temp
This commit is contained in:
parent
58f85fea41
commit
a1562aa4c2
1 changed files with 20 additions and 0 deletions
20
.github/workflows/test.yaml
vendored
20
.github/workflows/test.yaml
vendored
|
@ -15,7 +15,27 @@ jobs:
|
|||
run: git submodule update --init --recursive
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
- name: Create temp files
|
||||
id: secret-file1
|
||||
run: |
|
||||
$secretFile = Join-Path -Path $env:RUNNER_TEMP -ChildPath "lib/secret-file.txt";
|
||||
$encodedBytes = [System.Convert]::FromBase64String($env:CHANGE_NOW);
|
||||
Set-Content $secretFile -Value $encodedBytes -AsByteStream;
|
||||
$secretFileHash = Get-FileHash $secretFile;
|
||||
Write-Output "::set-output name=SECRET_FILE::$secretFile";
|
||||
Write-Output "::set-output name=SECRET_FILE_HASH::$($secretFileHash.Hash)";
|
||||
Write-Output "Secret file $secretFile has hash $($secretFileHash.Hash)";
|
||||
shell: pwsh
|
||||
env:
|
||||
CHANGE_NOW: ${{ secrets.CHANGE_NOW }}
|
||||
- name: Analyze
|
||||
run: flutter analyze
|
||||
- name: Test
|
||||
run: flutter test
|
||||
- name: Delete temp files
|
||||
run: |
|
||||
Remove-Item -Path $env:CHANGE_NOW;
|
||||
shell: pwsh
|
||||
if: always()
|
||||
env:
|
||||
CHANGE_NOW: ${{ steps.secret-file1.outputs.SECRET_FILE }}
|
||||
|
|
Loading…
Reference in a new issue