feat: update mm and others #45
Workflow file for this run
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
name: Adapter React | |
env: | |
CI: true | |
FORCE_COLOR: 1 | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'packages/adapter-react/**' | |
- '.github/workflows/adapter-react.yml' | |
- 'pnpm-lock.yaml' | |
pull_request: | |
paths: | |
- 'packages/adapter-react/**' | |
- '.github/workflows/adapter-react.yml' | |
- 'pnpm-lock.yaml' | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm -r --filter filsnap-adapter-react run lint | |
- run: pnpm -r --filter filsnap-adapter-react exec depcheck | |
- run: pnpm -r --filter filsnap-adapter-react 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 |