Merge pull request #178 from LFDT-Paladin/perf #572
This file contains hidden or 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: e2e | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - 'doc-site/**' | |
| - '.github/workflows/docs.yaml' | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - 'doc-site/**' | |
| - '.github/workflows/docs.yaml' | |
| workflow_dispatch: | |
| jobs: | |
| setup-prerequisites: | |
| uses: ./.github/workflows/e2e-deps.yaml | |
| integration-test: | |
| needs: setup-prerequisites | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres | |
| env: | |
| POSTGRES_PASSWORD: my-secret | |
| POSTGRES_USER: postgres | |
| POSTGRES_DB: postgres | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.24 | |
| - name: Setup node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Checkout Zeto | |
| uses: actions/checkout@v4 | |
| with: | |
| path: zeto | |
| fetch-depth: 0 | |
| - name: Setup temp dir for the artifacts | |
| run: | | |
| mkdir -p ${{ runner.temp }}/zeto-artifacts | |
| - name: Download zeto artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: ${{ needs.setup-prerequisites.outputs.artifacts-name }} | |
| path: ${{ runner.temp }}/zeto-artifacts | |
| - name: Run golang e2e tests | |
| env: | |
| PROVING_KEYS_ROOT: ${{ runner.temp }}/zeto-artifacts | |
| CIRCUITS_ROOT: ${{ runner.temp }}/zeto-artifacts | |
| working-directory: zeto/go-sdk | |
| run: | | |
| echo "PROVING_KEYS_ROOT: $PROVING_KEYS_ROOT" | |
| echo "CIRCUITS_ROOT: $CIRCUITS_ROOT" | |
| ls -la $PROVING_KEYS_ROOT | |
| make e2e | |
| - name: Run js e2e tests | |
| env: | |
| PROVING_KEYS_ROOT: ${{ runner.temp }}/zeto-artifacts | |
| CIRCUITS_ROOT: ${{ runner.temp }}/zeto-artifacts | |
| working-directory: zeto/zkp/js | |
| run: | | |
| npm install | |
| npm run test:e2e | |
| - name: Run Zeto Tokens hardhat tests as upgradeable contracts | |
| env: | |
| PROVING_KEYS_ROOT: ${{ runner.temp }}/zeto-artifacts | |
| CIRCUITS_ROOT: ${{ runner.temp }}/zeto-artifacts | |
| working-directory: zeto/solidity | |
| run: | | |
| npm install | |
| npm t | |
| - name: Run Zeto Tokens hardhat tests as cloned contracts | |
| env: | |
| USE_FACTORY: true | |
| PROVING_KEYS_ROOT: ${{ runner.temp }}/zeto-artifacts | |
| CIRCUITS_ROOT: ${{ runner.temp }}/zeto-artifacts | |
| working-directory: zeto/solidity | |
| run: | | |
| npm install | |
| npm t |