-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve zano wallet opening, fix CI commands and messages on slack
- Loading branch information
Showing
8 changed files
with
107 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,10 +34,19 @@ jobs: | |
- name: Fix github actions messing up $HOME... | ||
run: 'echo HOME=/root | sudo tee -a $GITHUB_ENV' | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: configure git | ||
run: | | ||
git config --global --add safe.directory '*' | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CakeWallet CI" | ||
- name: Get the full commit message | ||
run: | | ||
FULL_MESSAGE="$(git log -1 --pretty=%B)" | ||
echo "message<<EOF" >> $GITHUB_ENV | ||
echo "$FULL_MESSAGE" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Add secrets | ||
run: | | ||
touch lib/.secrets.g.dart | ||
|
@@ -274,14 +283,14 @@ jobs: | |
echo "APK_FILE=$apk_file" >> $GITHUB_ENV | ||
- name: Upload artifact to slack | ||
if: ${{ !contains(github.event.head_commit.message, 'skip slack') }} | ||
if: ${{ !contains(env.message, 'skip slack') }} | ||
continue-on-error: true | ||
uses: adrey/[email protected] | ||
with: | ||
token: ${{ secrets.SLACK_APP_TOKEN }} | ||
path: ${{ env.APK_FILE }} | ||
channel: ${{ secrets.SLACK_APK_CHANNEL }} | ||
initial_comment: ${{ github.event.head_commit.message }} | ||
initial_comment: ${{ env.message }} | ||
|
||
- name: cleanup | ||
run: rm -rf build/app/outputs/flutter-apk/test-apk/ | ||
|
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 |
---|---|---|
|
@@ -30,10 +30,19 @@ jobs: | |
- name: Fix github actions messing up $HOME... | ||
run: 'echo HOME=/root | sudo tee -a $GITHUB_ENV' | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: configure git | ||
run: | | ||
git config --global --add safe.directory '*' | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CakeWallet CI" | ||
- name: Get the full commit message | ||
run: | | ||
FULL_MESSAGE="$(git log -1 --pretty=%B)" | ||
echo "message<<EOF" >> $GITHUB_ENV | ||
echo "$FULL_MESSAGE" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Add secrets | ||
run: | | ||
touch lib/.secrets.g.dart | ||
|
@@ -231,7 +240,7 @@ jobs: | |
name: cakewallet_linux | ||
|
||
- name: Prepare virtual desktop | ||
if: ${{ contains(github.event.head_commit.message, 'run tests') }} | ||
if: ${{ contains(env.message, 'run tests') }} | ||
run: | | ||
nohup Xvfb :99 -screen 0 720x1280x16 & | ||
echo DISPLAY=:99 | sudo tee -a $GITHUB_ENV | ||
|
@@ -247,28 +256,28 @@ jobs: | |
# isn't much in those wallets anyway, we still wouldn't like to leak it to anyone who is able to access github. | ||
|
||
- name: Test [confirm_seeds_flow_test] | ||
if: ${{ contains(github.event.head_commit.message, 'run tests') }} | ||
if: ${{ contains(env.message, 'run tests') }} | ||
timeout-minutes: 20 | ||
run: | | ||
xmessage -timeout 30 "confirm_seeds_flow_test" & | ||
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet | ||
exec timeout --signal=SIGKILL 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/confirm_seeds_flow_test.dart | ||
- name: Test [create_wallet_flow_test] | ||
if: ${{ contains(github.event.head_commit.message, 'run tests') }} | ||
if: ${{ contains(env.message, 'run tests') }} | ||
timeout-minutes: 20 | ||
run: | | ||
xmessage -timeout 30 "create_wallet_flow_test" & | ||
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet | ||
exec timeout --signal=SIGKILL 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/create_wallet_flow_test.dart | ||
- name: Test [exchange_flow_test] | ||
if: ${{ contains(github.event.head_commit.message, 'run tests') }} | ||
if: ${{ contains(env.message, 'run tests') }} | ||
timeout-minutes: 20 | ||
run: | | ||
xmessage -timeout 30 "exchange_flow_test" & | ||
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet | ||
exec timeout --signal=SIGKILL 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/exchange_flow_test.dart | ||
- name: Test [restore_wallet_through_seeds_flow_test] | ||
if: ${{ contains(github.event.head_commit.message, 'run tests') }} | ||
if: ${{ contains(env.message, 'run tests') }} | ||
timeout-minutes: 20 | ||
run: | | ||
xmessage -timeout 30 "restore_wallet_through_seeds_flow_test" & | ||
|
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
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
Oops, something went wrong.