Skip to content

Instantly share code, notes, and snippets.

View ArtificialPB's full-sized avatar

ArtificialPB

View GitHub Profile
@ArtificialPB
ArtificialPB / foundry-rpc-cache-action.yml
Created December 6, 2022 16:38
Github action step for caching RPC forked state. NOTE: edit the paths under `key` according to your project structure.
# Always try to load any available cache - saving it again after each run. Goal is to minimize RPC calls,
# speeding up tests. See: https://github.com/actions/cache/blob/main/workarounds.md#update-a-cache
- name: Cache Foundry forked state
uses: actions/cache@v3
with:
path: ~/.foundry/cache/rpc
key: ${{ runner.os }}-foundry-${{ hashFiles('./ethereum/kriptal/foundry.toml', './ethereum/kriptal/src/test/**/*.sol') }}
restore-keys: ${{ runner.os }}-foundry

Uber JAR support - Pack and run microservice as uber JAR

KumuluzEE (since version 2.4.0) provides support for packing and running microservices as uber JARs. It also includes a Gradle task that correctly packages the microservice.

To package a KumuluzEE microservice into an uber JAR, you need to add the following task declarations into your REST module build.gradle:

dependencies {
    kumuluzeeLoader 'com.kumuluz.ee:kumuluzee-loader:3.1.0'