Skip to content

Commit

Permalink
Switch to ECR (#1559)
Browse files Browse the repository at this point in the history
* ci: switch to ECR

* ci: fix git-auto-commit-action

* test: fix e2e

---------

Co-authored-by: Denis Davidyuk <[email protected]>
  • Loading branch information
dincho and davidyuk authored Jul 16, 2024
1 parent 0456a79 commit b402ff1
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/_validate-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 20.x
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ jobs:
validate:
uses: ./.github/workflows/_validate-npm.yml
publish:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.1.0
uses: aeternity/github-actions/.github/workflows/_publish-ecr.yml@v2.3.1
needs: [ validate ]
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
BUILD_ARGS: REVISION=${{ github.sha }}
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.1.0
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.3.1
needs: [publish]
secrets: inherit
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pull-request-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ on:

jobs:
rollback:
uses: aeternity/github-actions/.github/workflows/_rollback-gitops.yml@v2.1.0
uses: aeternity/github-actions/.github/workflows/_rollback-gitops.yml@v2.3.1
secrets: inherit
with:
DEPLOY_ENV: stg
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-base"
delete-tag:
uses: aeternity/github-actions/.github/workflows/_delete-tag-docker.yml@v2.1.0
uses: aeternity/github-actions/.github/workflows/_delete-tag-ecr.yml@v2.3.1
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
DOCKERHUB_TAG: "pr-${{ github.event.number }}"
cleanup:
uses: aeternity/github-actions/.github/workflows/[email protected]
needs: [ delete-tag ]
secrets: inherit
5 changes: 2 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ jobs:
validate:
uses: ./.github/workflows/_validate-npm.yml
publish:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.1.0
uses: aeternity/github-actions/.github/workflows/_publish-ecr.yml@v2.3.1
needs: [ validate ]
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
BUILD_ARGS: REVISION=${{ github.sha }}
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.1.0
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.3.1
needs: [publish]
secrets: inherit
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:

jobs:
publish:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.1.0
uses: aeternity/github-actions/.github/workflows/_publish-ecr.yml@v2.3.1
secrets: inherit
with:
BUILD_ARGS: REVISION=${{ github.sha }}
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.1.0
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.3.1
needs: [publish]
secrets: inherit
with:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion tests/e2e/specs/browser/index.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ describe('Browser', () => {
cy
.viewport('iphone-se2')
.visit('/browser', { login: true });
cy.getIframeBody().find('img').should('be.visible').should('length.gte', 3);
cy.get('.progress-fake').should('not.exist');
cy.getIframeBody()
.find('img')
.should('be.visible')
.and('length', 4)
.and(($imgs) => Array.from($imgs).forEach((img) => {
expect(img.naturalWidth).to.be.greaterThan(0);
}));
cy.matchImage();
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion tests/e2e/specs/names/index.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ describe('Names', () => {
cy
.viewport('iphone-se2')
.visit('/names', { login: true })
.get('.list-item').should('be.visible');
.get('.list-item').should('length', 4)
.should('be.visible');
cy.matchImage();

cy.get('[href="/names/ending-soonest"]').should('be.visible');
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/transfer/sign-transaction.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe('Sign transaction', () => {
.viewport('iphone-se2')
.visit(url.href.replace('http://localhost', ''), { login: 'wallet-empty' });
cy.get('button').contains('Confirm').click();
const skipButton = cy.get('.modal-plain .ae-button.primary');
const skipButton = cy.get('.modal-plain .ae-button.primary').should('be.visible');
cy.matchImage();
skipButton.click();

Expand Down

0 comments on commit b402ff1

Please sign in to comment.