Skip to content

chore: Safe boilerplate & simple account automated tests #17

chore: Safe boilerplate & simple account automated tests

chore: Safe boilerplate & simple account automated tests #17

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build_rust_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- run: rustup update stable && rustup default stable
- run: rustup toolchain install nightly -c rustfmt
- run: git submodule update --init --recursive
- run: make setup-thirdparty
- run: docker-compose up -d
working-directory: test/scripts/forked_state
- run: while ! nc -z 127.0.0.1 8545; do sleep 1; done
- run: while ! nc -z 127.0.0.1 4337; do sleep 1; done
- run: while ! nc -z 127.0.0.1 3000; do sleep 1; done
- run: cargo test --all-features --lib --bins
# - run: cargo clippy --workspace --all-features --all-targets -- -D warnings
# - run: cargo +nightly fmt --all -- --check
# - run: cargo +nightly udeps --workspace
build_swift_and_test:
name: Swift Package - latest
runs-on: macos-14
strategy:
matrix:
config:
- debug
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- run: rustup update stable && rustup default stable
- run: git submodule update --init --recursive
- run: make setup-thirdparty
- run: make build-ios-bindings
- name: Select Xcode 15.4
run: sudo xcode-select -s /Applications/Xcode_15.4.app
- name: Build ${{ matrix.config }}
run: make CONFIG=${{ matrix.config }} build-swift-apple-platforms
- name: Run ${{ matrix.config }} tests
run: make CONFIG=${{ matrix.config }} test-swift-apple-platforms