mirror of
https://github.com/fluencelabs/trust-graph
synced 2024-12-04 23:30:19 +00:00
175e51d5db
* Update aqua * Update aqua-lib * Update admin aqua * Remove aqua dep * Update example aqua * Fix package.json * Update admin/package.json Co-authored-by: Aleksey Proshutinskiy <justprosh@users.noreply.github.com> * Update aqua/package.json Co-authored-by: Aleksey Proshutinskiy <justprosh@users.noreply.github.com> * Update example/package.json Co-authored-by: Aleksey Proshutinskiy <justprosh@users.noreply.github.com> * Setup fluence in CI --------- Co-authored-by: Aleksey Proshutinskiy <justprosh@users.noreply.github.com>
70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
name: Run tests with workflow_call
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
fcli-version:
|
|
description: "@fluencelabs/cli version"
|
|
type: string
|
|
default: "main"
|
|
|
|
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
|
|
|
|
- name: Setup marine
|
|
uses: fluencelabs/setup-marine@v1
|
|
with:
|
|
artifact-name: marine
|
|
|
|
- name: Build
|
|
run: ./build.sh
|
|
|
|
- name: Run cargo clippy
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
args: -Z unstable-options --all
|
|
|
|
- name: Setup nextest
|
|
uses: taiki-e/install-action@nextest
|
|
|
|
- name: Run cargo nextest
|
|
env:
|
|
NEXTEST_RETRIES: 10
|
|
NEXTEST_TEST_THREADS: 10
|
|
# 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
|
|
|
|
- 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"
|
|
|
|
- name: Setup fcli
|
|
uses: fluencelabs/setup-fluence@v1
|
|
with:
|
|
artifact: fcli
|
|
version: ${{ inputs.fcli-version }}
|
|
|
|
- run: npm i
|
|
working-directory: aqua
|
|
|
|
- run: npm run build
|
|
working-directory: aqua
|