Skip to content

Commit

Permalink
chore: use e2e test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Jan 31, 2024
1 parent f829c75 commit e03929f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 45 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,5 @@
name: Proof of Twitter tests
on: [push]
jobs:
run_circuit_tests:
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3

# Circom installation from https://github.com/erhant/circomkit/blob/main/.github/workflows/tests.yml
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --yes \
build-essential \
libgmp-dev \
libsodium-dev \
nasm \
nlohmann-json3-dev
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Download Circom Binary v2.1.5
run: |
wget -qO /home/runner/work/circom https://github.com/iden3/circom/releases/download/v2.1.5/circom-linux-amd64
chmod +x /home/runner/work/circom
sudo mv /home/runner/work/circom /bin/circom
- name: Print Circom version
run: circom --version

- name: Install Yarn dependencies
working-directory: ./packages/circuits
run: yarn install --immutable

- name: Run Tests
working-directory: ./packages/circuits
run: yarn test

run_contract_tests:
runs-on: ubuntu-latest
environment: development
Expand Down
2 changes: 1 addition & 1 deletion packages/app/scripts/test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

# Execute E2E test
# This file is required in the CI
yarn start-e2e-test-server & yarn test:e2e-ui
yarn start-e2e-test-server & yarn test:e2e-zkp
3 changes: 2 additions & 1 deletion packages/app/tests/e2e-dl-zkp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ describe("App.js", () => {

beforeAll(async () => {
browser = await puppeteer.launch({
// headless: true,
headless: false,
args: ['--no-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
slowMo: 100
});
page = await browser.newPage();
Expand Down

0 comments on commit e03929f

Please sign in to comment.