2023-01-30 12:43:16 +02:00
|
|
|
name: Run tests with workflow_call
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
trust-graph:
|
|
|
|
name: "cargo nextest"
|
|
|
|
runs-on: builder
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Rust toolchain
|
|
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
|
2023-03-20 10:19:48 +02:00
|
|
|
- name: Setup marine
|
|
|
|
uses: fluencelabs/setup-marine@v1
|
2023-09-04 14:57:50 +03:00
|
|
|
with:
|
|
|
|
artifact-name: marine
|
2023-01-30 12:43:16 +02:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: ./build.sh
|
|
|
|
|
|
|
|
- name: Run cargo clippy
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
args: -Z unstable-options --all
|
|
|
|
|
2023-10-10 15:01:07 +02:00
|
|
|
- name: Setup nextest
|
|
|
|
uses: taiki-e/install-action@nextest
|
2023-01-30 12:43:16 +02:00
|
|
|
|
|
|
|
- name: Run cargo nextest
|
|
|
|
env:
|
|
|
|
NEXTEST_RETRIES: 10
|
|
|
|
NEXTEST_TEST_THREADS: 10
|
2023-06-20 14:07:53 +02:00
|
|
|
# exclude distro since at this point we don't have compiled wasms which are required for compilation
|
|
|
|
run: cargo nextest run --release --all-features --no-fail-fast --workspace --exclude trust-graph-distro
|
2023-01-30 12:43:16 +02:00
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: "16"
|
|
|
|
registry-url: "https://registry.npmjs.org"
|
|
|
|
cache-dependency-path: "aqua/package-lock.json"
|
|
|
|
cache: "npm"
|
|
|
|
|
|
|
|
- run: npm i
|
|
|
|
working-directory: aqua
|
|
|
|
|
|
|
|
- run: npm run build
|
|
|
|
working-directory: aqua
|