Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix: failing test_asset_upload_endpoint_properly_adds_assets_to_datab…
Browse files Browse the repository at this point in the history
…ase_postgres integration test (#1426)
  • Loading branch information
lostman authored Oct 20, 2023
1 parent 18f846c commit a9e9a69
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,15 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
targets: wasm32-unknown-unknown
- name: Install wasm-snip
run: |
if ! which wasm-snip; then cargo install wasm-snip; fi
- name: Build simple-wasm WASM
run: |
cargo build -p simple-wasm --release --target wasm32-unknown-unknown
bash scripts/stripper.bash simple_wasm.wasm
cp simple_wasm.wasm target/wasm32-unknown-unknown/release/
- name: cargo test --locked --all-targets --workspace --exclude fuel-indexer-tests
--exclude plugin-tests --exclude fuel-indexer-benchmarks
run: cargo test --locked --all-targets --workspace --exclude fuel-indexer-tests
Expand Down Expand Up @@ -216,10 +225,6 @@ jobs:
if ! which wasm-snip; then cargo install wasm-snip; fi
- name: Build fuel-indexer* and forc-index binaries
run: cargo build -p forc-index -p fuel-indexer -p fuel-indexer-api-server --locked --release
- name: Build and test examples
run: |
export PATH=$PATH:$PWD/target/release
bash ./packages/fuel-indexer-tests/scripts/test-examples.bash
- name: Build fuel-indexer-test WASM
run: |
cargo build -p fuel-indexer-test --release --target wasm32-unknown-unknown
Expand All @@ -230,6 +235,10 @@ jobs:
cargo build -p simple-wasm --release --target wasm32-unknown-unknown
bash scripts/stripper.bash simple_wasm.wasm
cp simple_wasm.wasm target/wasm32-unknown-unknown/release/
- name: Build and test examples
run: |
export PATH=$PATH:$PWD/target/release
bash ./packages/fuel-indexer-tests/scripts/test-examples.bash
- name: Integration tests
run: |
export PATH=$PATH:$PWD/target/release
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/fuel-indexer-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub mod assets {
include_str!("./../indexers/simple-wasm/schema/simple_wasm.graphql");

pub const SIMPLE_WASM_WASM: &[u8] =
include_bytes!("./../indexers/simple-wasm/simple_wasm.wasm");
include_bytes!("../../../target/wasm32-unknown-unknown/release/simple_wasm.wasm");
}

pub mod defaults {
Expand Down

0 comments on commit a9e9a69

Please sign in to comment.