chore(deps): bump follow-redirects from 1.15.11 to 1.16.0 #149
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Project and Run Tests | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| PKG_CONFIG_PATH: /usr/lib/pkgconfig | |
| PUBLIC_STELLAR_NETWORK: local | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| runner/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| # Add the wasm32v1-none target for building contracts | |
| - run: rustup target add wasm32v1-none | |
| - run: | |
| sudo apt-get update && sudo apt-get install -y libudev-dev | |
| libdbus-1-dev pkg-config | |
| # Install binstall to quickly install stellar-scaffold-cli | |
| - name: Install cargo-binstall | |
| uses: cargo-bins/cargo-binstall@main | |
| # Check for stellar-scaffold-cli binary and install if not present | |
| - name: Check for stellar-scaffold binary | |
| run: | | |
| if ! command -v stellar-scaffold &> /dev/null; then | |
| echo "stellar-scaffold not found, installing..." | |
| cargo binstall stellar-scaffold-cli | |
| else | |
| echo "stellar-scaffold already installed. Clear cache to force reinstall." | |
| fi | |
| - name: Start Stellar local network | |
| uses: stellar/quickstart@main | |
| with: | |
| enable: "core,rpc" | |
| - name: Add master account as default identity | |
| run: | | |
| mkdir -p .config/stellar/identity | |
| echo 'secret_key = "SC5O7VZUXDJ6JBDSZ74DSERXL7W3Y5LTOAMRF7RQRL3TAGAPS7LUVG3L"' > .config/stellar/identity/me.toml | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npx prettier . --check | |
| - name: Build with Scaffold and build client packages | |
| run: | |
| STELLAR_SCAFFOLD_ENV=development stellar-scaffold build | |
| --build-clients 2>&1 | tee build_clients.log | |
| - name: Check client generation summary | |
| run: | | |
| # Extract the number after "Failed: " | |
| FAILED=$(grep -Eo "Failed: [0-9]+" build_clients.log | awk '{print $2}') | |
| if [ -z "$FAILED" ]; then | |
| echo "Could not find 'Failed: N' in build_clients.log, all clients succeeded." | |
| exit 0 | |
| fi | |
| if [ "$FAILED" -gt 0 ]; then | |
| echo "Client generation summary check failed: Failed: $FAILED" | |
| echo "Check the \"Build with Scaffold\" step logs." | |
| exit 1 | |
| fi | |
| - run: npm run install:contracts | |
| - run: npm run build | |
| - name: Run tests | |
| run: npm test --if-present |