Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
24 changes: 24 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for comparison

- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: Check for changes in src/
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'src/**'

- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
Expand Down Expand Up @@ -51,4 +61,18 @@ jobs:

- name: Run js tests
run: script -e -c "BASE_PXE_URL=http://localhost NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json"

- name: Benchmark
uses: defi-wonderland/aztec-benchmark-diff/action@fix/troubleshoot
if: steps.changes.outputs.src == 'true'
with:
threshold: '2.0'
output_markdown_path: 'benchmark_diff.md'

- name: Comment diff
uses: peter-evans/create-or-update-comment@v4
if: steps.changes.outputs.src == 'true'
with:
issue-number: ${{ github.event.pull_request.number }}
body-file: benchmark_diff.md

8 changes: 6 additions & 2 deletions Nargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[workspace]
members = [
"src/token_contract"
]
"src/token_contract"
]

[benchmark]
token = "benchmarks/token_contract.benchmark.ts"

Loading