Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
12 changes: 6 additions & 6 deletions .env.local
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NEXT_PUBLIC_API_KEY="AIzaSyBs3rH_4KQnO1FO7xqigU33uv654_aFI5E",
NEXT_PUBLIC_AUTH_DOMAIN="realtor-clone-ad19c.firebaseapp.com",
NEXT_PUBLIC_PROJECT_ID="realtor-clone-ad19c",
NEXT_PUBLIC_STORAGE_BUCKET="realtor-clone-ad19c.appspot.com",
NEXT_PUBLIC_MESSAGING_SENDER_ID="347563487697",
NEXT_PUBLIC_APP_ID="1:347563487697:web:ecc1c0eff0221f743f30f0",
NEXT_PUBLIC_API_KEY="AIzaSyBs3rH_4KQnO1FO7xqigU33uv654_aFI5E",
NEXT_PUBLIC_AUTH_DOMAIN="realtor-clone-ad19c.firebaseapp.com",
NEXT_PUBLIC_PROJECT_ID="realtor-clone-ad19c",
NEXT_PUBLIC_STORAGE_BUCKET="realtor-clone-ad19c.appspot.com",
NEXT_PUBLIC_MESSAGING_SENDER_ID="347563487697",
NEXT_PUBLIC_APP_ID="1:347563487697:web:ecc1c0eff0221f743f30f0",
NEXT_PUBLIC_RPC_URL="https://starknet-mainnet.g.alchemy.com/starknet/version/rpc/v0_7/dvHmwiGiA_uE22lKpZKLk4FoGlC_Xzy4"
174 changes: 87 additions & 87 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -1,87 +1,87 @@
name: Build and Test Rust backend

on: [push, pull_request]
permissions: read-all

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo build
uses: actions/cache@v4
with:
path: ./backend/target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build (release)
run: cargo build --release
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all -- -D warnings

test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
defaults:
run:
working-directory: ./backend
env:
DATABASE_URL: postgres://postgres:postgres@localhost/testdb
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo build
uses: actions/cache@v4
with:
path: ./backend/target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Run migrations
run: |
cargo install sqlx-cli --version 0.7.3
sqlx migrate run
- name: Run tests
run: cargo test --all --release --locked
name: Build and Test Rust backend
on: [push, pull_request]
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo build
uses: actions/cache@v4
with:
path: ./backend/target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build (release)
run: cargo build --release
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all -- -D warnings
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
defaults:
run:
working-directory: ./backend
env:
DATABASE_URL: postgres://postgres:postgres@localhost/testdb
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo build
uses: actions/cache@v4
with:
path: ./backend/target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Run migrations
run: |
cargo install sqlx-cli --version 0.7.3
sqlx migrate run
- name: Run tests
run: cargo test --all --release --locked
58 changes: 29 additions & 29 deletions .github/workflows/test_contract.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Build and Test

on: [push, pull_request]
permissions: read-all

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: 2.11.3
- name: Check cairo format
run: scarb fmt --check
- name: Build cairo programs
run: scarb build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: 2.11.2
- uses: foundry-rs/setup-snfoundry@v3
with:
starknet-foundry-version: 0.39.0
- name: Run cairo tests
name: Build and Test
on: [push, pull_request]
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: 2.11.3
- name: Check cairo format
run: scarb fmt --check
- name: Build cairo programs
run: scarb build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: 2.11.2
- uses: foundry-rs/setup-snfoundry@v3
with:
starknet-foundry-version: 0.39.0
- name: Run cairo tests
run: snforge test
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
target
.snfoundry_cache/
target
.snfoundry_cache/
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
scarb 2.11.3
starknet-foundry 0.40.0
scarb 2.11.3
starknet-foundry 0.39.0
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pr:
scarb fmt
scarb build
snforge test

help:
pr:
scarb fmt
scarb build
snforge test
help:
@echo "make pr - Run formatting, build, and tests before PR"
Loading
Loading