chore(master): release filsnap 1.0.0 #122
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: Snap | |
env: | |
CI: true | |
FORCE_COLOR: 1 | |
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/ms-playwright | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'packages/snap/**' | |
- '.github/workflows/snap.yml' | |
- 'pnpm-lock.yaml' | |
pull_request: | |
paths: | |
- 'packages/snap/**' | |
- '.github/workflows/snap.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 --filter filsnap exec playwright install --with-deps chromium | |
- run: pnpm -r --filter filsnap run lint | |
- run: pnpm -r --filter filsnap exec depcheck | |
- run: pnpm -r --filter filsnap run test:unit | |
- run: pnpm -r --filter filsnap run test:e2e | |
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 " | |
### Snap Tests failed 🤷🏻♂️ | |
Check report and traces: https://w3s.link/ipfs/${{ steps.add_to_web3_storage.outputs.cid }} | |
" >> $GITHUB_STEP_SUMMARY |