-
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 0a860c1
Showing
6 changed files
with
166 additions
and
89 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,40 @@ | ||
name: build | ||
description: Build package | ||
|
||
inputs: | ||
DIR: | ||
description: 'package directory' | ||
required: true | ||
NAME: | ||
description: 'package name' | ||
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 }} | ||
|
||
- 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 |
This file was deleted.
Oops, something went wrong.
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,95 @@ | ||
name: smoketests | ||
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 | ||
|
||
env: | ||
TAGS: '@Smoke and @Testnet' | ||
BROWSER: 'chrome' | ||
RUN: ${{ github.run_number }} | ||
DISPLAY: ':99.0' | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Start XVFB | ||
run: | | ||
Xvfb :99 & | ||
- name: Execute E2E tests | ||
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.${BROWSER}.ts --cucumberOpts.tags="@Smoke and not @Pending" | ||
|
||
- name: Create allure properties | ||
if: always() | ||
working-directory: ./packages/e2e-tests/reports/allure/results | ||
run: | | ||
echo " | ||
browser=${BROWSER} | ||
tags=${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/${BROWSER}/${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.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