Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/chainwright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ on:
- "tests/e2e/**/*.spec.ts"
- "src/wallets/**/actions/**/*.ts"

permissions:
contents: read

jobs:
test:
if: github.repository == 'amaify/chainwright'
runs-on: ubuntu-22.04
timeout-minutes: 60

strategy:
matrix:
node-version: [24]
steps:
- name: Checkout code
uses: actions/checkout@v5
Expand Down Expand Up @@ -56,18 +62,15 @@ jobs:
echo "EOF" >> "$GITHUB_OUTPUT"

- name: Install pnpm
uses: pnpm/action-setup@v5
with:
version: 10

- name: Use Node LTS
uses: actions/setup-node@v6
uses: pnpm/setup@v2
with:
node-version: 24.x
cache: "pnpm"
runtime: node@${{ matrix.node-version }}
version: 11
install: false
cache: true

- name: Install dependencies
run: pnpm install
run: pnpm install --no-frozen-lockfile

- name: Install XVFB
run: sudo apt-get install -y xvfb
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/linting-and-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,30 @@ on:
pull_request:
branches: ["main", "dev"]

permissions:
contents: read

jobs:
linting_and_unit_tests:
if: github.repository == 'amaify/chainwright'
runs-on: ubuntu-22.04
timeout-minutes: 60

strategy:
matrix:
node-version: [24]
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
submodules: "recursive"

- name: Install pnpm
uses: pnpm/action-setup@v5
with:
version: 10

- name: Use Node LTS
uses: actions/setup-node@v6
uses: pnpm/setup@v2
with:
node-version: 24.x
cache: "pnpm"
runtime: node@${{ matrix.node-version }}
version: 11
install: false
cache: true

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
if: github.repository == 'amaify/chainwright'
name: Changesets Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24]
permissions:
contents: write
pull-requests: write
Expand All @@ -24,16 +28,12 @@ jobs:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v5
uses: pnpm/setup@v2
with:
version: 10

- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 24.x
registry-url: https://registry.npmjs.org
package-manager-cache: false
runtime: node@${{ matrix.node-version }}
version: 11
install: false
cache: true

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/schedule-wallet-initialization-runs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Scheduled Wallet Initialization Runs

on:
workflow_dispatch:

schedule:
# Runs at 6 AM UTC, Monday - Friday
- cron: "0 6 * * 1-5"

permissions:
contents: read

jobs:
setup-wallets:
if: github.repository == 'amaify/chainwright'
runs-on: ubuntu-22.04
timeout-minutes: 60
strategy:
matrix:
node-version: [24]

steps:
- name: Checkout code
uses: actions/checkout@v5
with:
submodules: "recursive"
fetch-depth: 0

- name: Install pnpm
uses: pnpm/setup@v2
with:
runtime: node@${{ matrix.node-version }}
version: 11
install: false
cache: true

- name: Install dependencies
run: pnpm install --no-frozen-lockfile

- name: Install XVFB
run: sudo apt-get install -y xvfb

- name: Install Playwright browsers
run: pnpm exec playwright install chromium

- name: Initialize wallets
run: xvfb-run pnpm run setup-wallets
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# dependencies (bun install)
node_modules
test-package
pnpm-workspace.yaml

# output
out
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @tobelabs/chainwright

## 0.10.15

### Patch Changes

- [Core] - Upgrade packages and fix the failing CI workflow

## 0.10.14

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2026 amaify
Copyright (c) 2026 Tobechukwu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 2 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chainwright",
"version": "0.10.14",
"version": "0.10.15",
"description": "Playwright Web3 wallet testing framework for end-to-end dApp automation with MetaMask, Phantom, Solflare, Petra, Meteor, and Keplr",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -111,18 +111,7 @@
"commander": "^15.0.0",
"glob": "^13.0.6",
"prool": "^0.2.14",
"tsx": "^4.23.9",
"tsx": "^4.23.10",
"zod": "^4.4.3"
},
"overrides": {
"tar": "^7.5.21"
},
"resolutions": {
"tar": "^7.5.21"
},
"pnpm": {
"overrides": {
"tar": "^7.5.21"
}
}
}
38 changes: 19 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
allowBuilds:
esbuild: true
minimumReleaseAgeExclude:
- tsx@4.23.9 || 4.23.10
overrides:
tar: ^7.5.21