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
33 changes: 0 additions & 33 deletions .eslintrc.cjs

This file was deleted.

91 changes: 10 additions & 81 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,98 +1,27 @@
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
on: [push, pull_request]

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [lts/*, lts/-1]
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
check-latest: true
node-version: "lts/*"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

test-contracts:
name: Test verifier contracts
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [lts/*]

steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Install Playwright dependencies
run: npx playwright install

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Install hardhat dependencies
working-directory: smart_contract_tests
run: npm ci

- name: Run hardhat tests
working-directory: smart_contract_tests
run: npm test

test-browser:
name: Test browser
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [lts/*]

steps:
- name: Checkout project
uses: actions/checkout@v2

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: "npm"

- name: Install browser dependencies
working-directory: browser_tests
run: npm ci

- name: Run browser tests
working-directory: browser_tests
- name: Run tests
run: npm test
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,11 @@ tmp

.DS_Store
stats.html

credentialAtomicQueryV3OnChain
generate.sh

# Hardhat build outputs
contracts/
cache/
artifacts/
Loading
Loading