Skip to content

Commit

Permalink
feat: adding test workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase authored Dec 27, 2024
1 parent b804e99 commit 1e9e0e2
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
setup-and-run:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
bash tmp.sh <<< yes "yes"
- name: Update path
run: echo "/home/runner/.aztec/bin" >> $GITHUB_PATH

- name: Set Aztec version and start sandbox
run: |
VERSION=0.68.0 aztec-up
aztec start --sandbox &
- name: Install project dependencies
run: yarn

- name: Compile, generate code, and run tests
run: script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"

- name: Codegen
run: script -e -c "aztec codegen target --outdir src/artifacts"

- name: Run tests
run: script -e -c "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json && aztec test"

0 comments on commit 1e9e0e2

Please sign in to comment.