Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hey-ewan committed Nov 2, 2024
0 parents commit 53781d6
Show file tree
Hide file tree
Showing 5 changed files with 5,179 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/verifier

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('*/**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev pkg-config
- name: Create .env file
run: |
echo "RPC_URL=${{ secrets.RPC_URL }}" >> .env
echo "PRIVATE_KEY=${{ secrets.PRIVATE_KEY }}" >> .env
- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target
/.env
Loading

0 comments on commit 53781d6

Please sign in to comment.