Skip to content

Commit

Permalink
Bugfix/update beta pipeline (#1321)
Browse files Browse the repository at this point in the history
* use single quotes

* update beta pipeline to remove `scripts`; uncomment prod pipeline

* fix e2e tests
  • Loading branch information
piyalbasu authored Jun 12, 2024
1 parent fe141c8 commit 8a203e8
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 42 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/submitBeta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
run: |
rm -rf ./extension/build/images
mv ./extension/build/beta_images ./extension/build/images
- name: Remove scripts tag
uses: restackio/update-json-file-action@617c86c20c3aea91b8438987dcef1e498e45a651 #v2.1
with:
file: ./extension/build/manifest.json
fields: '{"background": {"service_worker": "background.min.js"}}'
- name: Install zip
uses: montudor/action-zip@c25e01d7489d0274569440a2f0281b4569df16bc #v0.1.1
- name: Zip extension build
Expand Down
82 changes: 41 additions & 41 deletions .github/workflows/submitProduction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,47 +51,47 @@ jobs:
- name: Zip extension build
run: zip -qq -r ./build.zip *
working-directory: ./extension/build
# - name: Commit files
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# git add -A
# git commit -m "docs(): bumping release to ${{ github.event.inputs.version }}"
# git tag ${{ github.event.inputs.version }}
# - name: Create Pull Request
# uses: peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad #v3.10.1
# with:
# title: Bump versions to ${{ github.event.inputs.version }}
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# tag_name: ${{ github.event.inputs.version }}
# release_name: ${{ github.event.inputs.version }}
# body: ${{ github.event.inputs.version }}
# draft: false
# prerelease: false
# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./extension/build/build.zip
# asset_name: build-${{ github.event.inputs.version }}.zip
# asset_content_type: application/zip
# - name: Submit extension to Firefox
# uses: kewisch/action-web-ext@a28b4ba2f491cc36c67a714a716ca54218440056 #v1
# with:
# cmd: sign
# source: ./extension/build/build.zip
# channel: listed
# apiKey: ${{ secrets.AMO_SIGN_KEY }}
# apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
# timeout: 900000
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "docs(): bumping release to ${{ github.event.inputs.version }}"
git tag ${{ github.event.inputs.version }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad #v3.10.1
with:
title: Bump versions to ${{ github.event.inputs.version }}
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ github.event.inputs.version }}
release_name: ${{ github.event.inputs.version }}
body: ${{ github.event.inputs.version }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./extension/build/build.zip
asset_name: build-${{ github.event.inputs.version }}.zip
asset_content_type: application/zip
- name: Submit extension to Firefox
uses: kewisch/action-web-ext@a28b4ba2f491cc36c67a714a716ca54218440056 #v1
with:
cmd: sign
source: ./extension/build/build.zip
channel: listed
apiKey: ${{ secrets.AMO_SIGN_KEY }}
apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
timeout: 900000
- name: Remove scripts tag
uses: restackio/update-json-file-action@617c86c20c3aea91b8438987dcef1e498e45a651 #v2.1
with:
Expand Down
2 changes: 1 addition & 1 deletion extension/e2e-tests/addAsset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test("Adding unverified Soroban token", async ({ page, extensionId }) => {
await page.getByText("Add Soroban token").click({ force: true });
await page
.getByTestId("search-token-input")
.fill("CAEOFUGMYLPQ7EGALPNB65N47EWSXLWMW6OWMRUQSQHBNSEIKQD2NCKV");
.fill("CAHX2LUNQ4YKNJTDEFW2LSFOXDAL4QI4736RV52ZUGCIRJK5U7MWQWW6");
await expect(page.getByTestId("asset-notification")).toHaveText(
"Not on your listsFreighter uses asset lists to check assets you interact with. You can define your own assets lists in Settings.",
);
Expand Down
2 changes: 2 additions & 0 deletions extension/e2e-tests/helpers/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export const loginToTestAccount = async ({ page, extensionId }) => {
await page.goto(`chrome-extension://${extensionId}/index.html`);
await page.getByText("Import Wallet").click();

// GDF32CQINROD3E2LMCGZUDVMWTXCJFR5SBYVRJ7WAAIAS3P7DCVWZEFY

const TEST_ACCOUNT_WORDS = [
"card",
"whip",
Expand Down

0 comments on commit 8a203e8

Please sign in to comment.