Skip to content
Open
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
63 changes: 63 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: E2E Tests

on:
pull_request:

jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18.20.4'

- run: corepack enable
- run: yarn install

- name: yarn start:docker
run: yarn start:docker

- name: yarn build
run: yarn build

- name: yarn start:contract
run: yarn start:contract

- name: Install Linux deps (Xvfb + Fluxbox)
run: |
sudo apt-get install --no-install-recommends -y \
fluxbox \
xvfb

- name: Run xvfb and fluxbox
run: |
Xvfb :0 -screen 0 1024x768x24 -listen tcp -ac &
fluxbox &
env:
DISPLAY: :0.0

- name: Run e2e tests
uses: cypress-io/github-action@248bde77443c376edc45906ede03a1aba9da0462
with:
start: npx serve ui/dist -p 5173
command: yarn test:e2e
wait-on: 'http://localhost:5173'
wait-on-timeout: 120
browser: chrome
env:
DISPLAY: :0.0
SECRET_WORDS: 'orbit bench unit task food shock brand bracket domain regular warfare company announce wheel grape trust sphere boy doctor half guard ritual three ecology'

- name: Archive e2e artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-artifacts
path: |
ui/test/e2e/videos
ui/test/e2e/screenshots
continue-on-error: true
69 changes: 11 additions & 58 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,78 +1,31 @@
name: CI
name: PR

on:
pull_request:

jobs:
unit:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
node-version: [18, 20, 22]
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Use Node.js LTS versions
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- run: corepack enable
- run: yarn install
- name: yarn lint
run: yarn lint
- name: yarn build
run: yarn build
- name: yarn test
run: yarn test --exclude "**/e2e/**"
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: "18.18"
- run: corepack enable
- run: yarn install
- name: yarn start:docker
run: yarn start:docker
- name: yarn build
run: yarn build
- name: yarn start:contract
run: yarn start:contract

- name: Install linux deps
run: |
sudo apt-get install --no-install-recommends -y \
fluxbox \
xvfb

- name: Run xvfb and fluxbox
run: |
Xvfb :0 -screen 0 1024x768x24 -listen tcp -ac &
fluxbox &
env:
DISPLAY: :0.0
# - name: yarn lint
# run: yarn lint

- name: Run e2e tests
uses: cypress-io/github-action@248bde77443c376edc45906ede03a1aba9da0462
with:
start: npx serve ui/dist -p 5173
command: yarn test:e2e
wait-on: "http://localhost:5173"
wait-on-timeout: 120
browser: chrome
env:
DISPLAY: :0.0
SECRET_WORDS: "orbit bench unit task food shock brand bracket domain regular warfare company announce wheel grape trust sphere boy doctor half guard ritual three ecology"
- name: yarn build
run: yarn build

- name: Archive e2e artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-artifacts
path: |
ui/test/e2e/videos
ui/test/e2e/screenshots
continue-on-error: true
- name: yarn test (excluding e2e)
run: yarn test --exclude "**/e2e/**"
8 changes: 4 additions & 4 deletions contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"make:waitForBlocks": "make wait-for-blocks"
},
"devDependencies": {
"@agoric/deploy-script-support": "^0.10.4-u16.2",
"@agoric/deploy-script-support": "dev",
"@agoric/eslint-config": "^0.4.1-u16.0",
"@endo/bundle-source": "^3.5.1",
"@endo/eslint-plugin": "^2.3.0",
Expand All @@ -35,7 +35,7 @@
"eslint-plugin-ava": "^14.0.0",
"eslint-plugin-github": "^4.10.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.5.2",
"eslint-plugin-jsdoc": "^46.4.3",
"eslint-plugin-prettier": "^5.1.3",
"import-meta-resolve": "^2.2.1",
"prettier": "^3.0.3",
Expand All @@ -44,9 +44,9 @@
"typescript-eslint": "^7.2.0"
},
"dependencies": {
"@agoric/ertp": "^0.16.3-u16.1",
"@agoric/ertp": "dev",
"@agoric/vats": "dev",
"@agoric/zoe": "^0.26.3-u16.1",
"@agoric/zoe": "dev",
"@endo/far": "^1.1.10",
"@endo/marshal": "^1.6.3",
"@endo/patterns": "^1.4.8"
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
],
"resolutions-note": "work-around for https://github.com/Agoric/agoric-sdk/issues/8621",
"resolutions": {
"agoric": "^0.22.0-u16.2",
"agoric": "dev",
"ses": "1.8.0",
"@agoric/notifier": "^0.7.0-u16.1",
"@endo/bundle-source": "^3.4.0",
"@endo/captp": "^4.3.0",
"@endo/compartment-mapper": "^1.2.2",
Expand All @@ -36,7 +35,11 @@
"@endo/netstring": "^1.0.10",
"@endo/stream-node": "^1.1.5",
"@babel/code-frame": "7.18.6",
"@babel/highlight": "7.22.5"
"@babel/highlight": "7.22.5",
"better-sqlite3": "^10.1.0",
"@agoric/ertp": "dev",
"@agoric/vats": "dev",
"@agoric/zoe": "dev"
},
"scripts": {
"start:docker": "cd contract && docker compose up -d",
Expand Down
4 changes: 2 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@agoric/notifier": "^0.7.0-u16.1",
"@agoric/notifier": "dev",
"@agoric/rpc": "0.10.0",
"@agoric/store": "^0.9.3-u16.0",
"@agoric/store": "dev",
"@agoric/ui-components": "^0.9.0",
"@agoric/web-components": "^0.16.0",
"@testing-library/react": "^14.1.2",
Expand Down
Loading
Loading