-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12df424
commit 10b70d7
Showing
9 changed files
with
201 additions
and
101 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: build | ||
description: Build package | ||
|
||
inputs: | ||
DIR: | ||
description: 'package directory' | ||
required: true | ||
NAME: | ||
description: 'package name' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Code check | ||
uses: ./.github/actions/check | ||
with: | ||
DIR: ${{ inputs.DIR }} | ||
|
||
- name: Build ${{ inputs.NAME }} | ||
run: yarn build | ||
shell: bash | ||
working-directory: ${{ inputs.DIR }} | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.NAME }} | ||
path: ${{ inputs.DIR }}/dist |
14 changes: 12 additions & 2 deletions
14
.github/actions/lint/action.yml → .github/actions/check/action.yml
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 |
---|---|---|
@@ -1,16 +1,26 @@ | ||
name: lint | ||
description: Format and lint | ||
name: check | ||
description: Code check | ||
|
||
inputs: | ||
DIR: | ||
description: 'package directory' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Format check | ||
run: yarn format-check | ||
shell: bash | ||
working-directory: ${{ inputs.DIR }} | ||
|
||
- name: Code check | ||
run: yarn lint | ||
shell: bash | ||
working-directory: ${{ inputs.DIR }} | ||
|
||
- name: Type check | ||
run: yarn type-check | ||
shell: bash | ||
working-directory: ${{ inputs.DIR }} |
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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
name: smoke | ||
description: Execute e2e smoke tests | ||
|
||
inputs: | ||
WALLET_PASSWORD: | ||
description: 'Test wallet password' | ||
required: true | ||
|
||
TEST_DAPP_URL: | ||
description: 'Test DApp Url' | ||
required: true | ||
|
||
GITHUB_TOKEN: | ||
description: 'Github token' | ||
required: true | ||
|
||
E2E_AWS_ACCESS_KEY_ID: | ||
description: 'AWS access key id' | ||
required: true | ||
|
||
E2E_AWS_SECRET_ACCESS_KEY: | ||
description: 'AWS secret access key' | ||
required: true | ||
|
||
E2E_REPORTS_USER: | ||
description: 'E2E reports user' | ||
required: true | ||
|
||
E2E_REPORTS_PASSWORD: | ||
description: 'E2E reports password' | ||
required: true | ||
|
||
E2E_REPORTS_URL: | ||
description: 'E2E reports url' | ||
required: true | ||
|
||
RUN: | ||
description: 'Runner number' | ||
required: true | ||
|
||
TAGS: | ||
description: 'tags' | ||
required: false | ||
default: '@Smoke and @Testnet' | ||
|
||
BROWSER: | ||
description: 'browser' | ||
required: false | ||
default: 'chrome' | ||
|
||
DISPLAY: | ||
description: '' | ||
required: false | ||
default: ':99.0' | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Start XVFB | ||
shell: bash | ||
run: | | ||
Xvfb :99 & | ||
- name: Execute E2E tests | ||
shell: bash | ||
id: e2e-tests | ||
working-directory: ./packages/e2e-tests | ||
env: | ||
WALLET_1_PASSWORD: ${{ inputs.WALLET_PASSWORD }} | ||
TEST_DAPP_URL: ${{ inputs.TEST_DAPP_URL }} | ||
run: yarn wdio run wdio.conf.${{ inputs.BROWSER }}.ts --cucumberOpts.tags="@Smoke and not @Pending" | ||
|
||
- name: Create allure properties | ||
shell: bash | ||
if: always() | ||
working-directory: ./packages/e2e-tests/reports/allure/results | ||
run: | | ||
echo " | ||
browser=${{ inputs.BROWSER }} | ||
tags=${{ inputs.TAGS }} | ||
platform=Linux | ||
" > environment.properties | ||
- name: Publish allure report to S3 | ||
uses: andrcuns/allure-publish-action@v2.4.0 | ||
if: always() | ||
env: | ||
GITHUB_AUTH_TOKEN: ${{ inputs.GITHUB_TOKEN }} | ||
AWS_ACCESS_KEY_ID: ${{ inputs.E2E_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ inputs.E2E_AWS_SECRET_ACCESS_KEY }} | ||
with: | ||
storageType: s3 | ||
resultsGlob: './packages/e2e-tests/reports/allure/results' | ||
bucket: lace-e2e-test-results | ||
prefix: 'smoke/linux/${{ inputs.BROWSER }}/${{ inputs.RUN }}' | ||
copyLatest: true | ||
ignoreMissingResults: true | ||
updatePr: comment | ||
baseUrl: 'https://${{ inputs.E2E_REPORTS_USER }}:${{ inputs.E2E_REPORTS_PASSWORD }}@${{ inputs.E2E_REPORTS_URL }}' | ||
|
||
- name: Publish artifacts (logs, reports, screenshots) | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-artifacts | ||
path: | | ||
./packages/e2e-tests/screenshots | ||
./packages/e2e-tests/logs | ||
./packages/e2e-tests/reports | ||
retention-days: 5 |
5 changes: 3 additions & 2 deletions
5
.github/actions/verify/action.yml → .github/actions/test/unit/action.yml
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.