Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: API for uploading a sway project #19

Merged
merged 12 commits into from
Dec 5, 2024
Merged
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
7 changes: 6 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ POSTGRES_DB_NAME="forc_pub"
CORS_HTTP_ORIGIN="http://localhost:3000"

# Diesel CLI env
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_URI}/${POSTGRES_DB_NAME}"
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_URI}/${POSTGRES_DB_NAME}"

# IPFS env
PINATA_API_KEY=""
PINATA_API_SECRET=""
PINATA_JWT=""
5 changes: 5 additions & 0 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ jobs:
- uses: docker-practice/actions-setup-docker@master
timeout-minutes: 12
- run: ./scripts/start_local_db.sh
- name: setup binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install forc for tests
run: |
cargo binstall --no-confirm --root tests/fixtures/forc-0.65.0 forc@0.65.0
Copy link

@alfiedotwtf alfiedotwtf Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the version string be dynamic so it doesn't have to be touched every update?

Just a question, happy for this to be merged though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an argument for it but usually we don't want tests to start failing because of a release in another repo.

- uses: Swatinem/rust-cache@v1
- name: Run tests
uses: actions-rs/cargo@v1
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ target
build
node_modules
tmp
.vscode/*
.vscode/*
.env

# Forc binaries installed by the server.
/forc-*
Loading
Loading