Skip to content

Commit e1127a3

Browse files
committed
Add build+test to CI
1 parent 8788b96 commit e1127a3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
merge_group:
5+
branches: [ jz/add-ci-test ]
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build-and-test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y build-essential
22+
# Install aztec
23+
NON_INTERACTIVE=1 bash -i <(curl -s https://install.aztec.network)
24+
echo "$HOME/.aztec/bin" >> $GITHUB_PATH
25+
26+
- name: Build contract
27+
run: |
28+
cd hello
29+
make
30+
31+
- name: Run tests
32+
run: |
33+
cd hello
34+
aztec test

0 commit comments

Comments
 (0)