Skip to content

feat: add support for f4 and 0x addresses #10

feat: add support for f4 and 0x addresses

feat: add support for f4 and 0x addresses #10

Workflow file for this run

name: Adapter
env:
CI: true
FORCE_COLOR: 1
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/ms-playwright
on:
push:
branches:
- master
paths:
- 'packages/adapter/**'
- '.github/workflows/adapter.yml'
- 'pnpm-lock.yaml'
pull_request:
paths:
- 'packages/adapter/**'
- '.github/workflows/adapter.yml'
- 'pnpm-lock.yaml'
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm install
- run: pnpm dlx playwright install --with-deps chromium
- run: pnpm -r --filter filsnap-adapter run lint
- run: pnpm -r --filter filsnap-adapter exec depcheck
- run: pnpm -r --filter filsnap-adapter run test
id: tests
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: packages/snap/playwright-report/
retention-days: 30
- name: Check for playwright-report
id: check_report
if: always()
uses: andstor/file-existence-action@v2
with:
files: packages/snap/playwright-report
- name: Add report to web3.storage
if: always() && steps.check_report.outputs.files_exists == 'true' && steps.tests.outcome != 'success'
uses: web3-storage/add-to-web3@v2
id: add_to_web3_storage
with:
path_to_add: packages/snap/playwright-report
web3_token: ${{ secrets.WEB3_TOKEN }}
- name: Add url to GITHUB_STEP_SUMMARY
if: always() && steps.check_report.outputs.files_exists == 'true' && steps.tests.outcome != 'success'
run: |
echo "
### Adapter Tests failed 🤷🏻‍♂️
Check report and traces: https://w3s.link/ipfs/${{ steps.add_to_web3_storage.outputs.cid }}
" >> $GITHUB_STEP_SUMMARY