renovate[bot] 0fd1e99ed5
chore(deps): update actions/download-artifact action to v4 (#46)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-26 09:37:09 +03:00

56 lines
1.2 KiB
YAML

name: Run tests with workflow call
on:
workflow_call:
inputs:
ref:
description: "git ref to checkout to"
type: string
default: "master"
jobs:
tests:
name: "cargo test"
runs-on: builder
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: fluencelabs/sqlite-wasm-connector
ref: ${{ inputs.ref }}
- name: Setup Rust toolchain
uses: dsherret/rust-toolchain-file@v1
- name: Setup cache
uses: Swatinem/rust-cache@v2
with:
shared-key: sqlite-wasm-connector
save-if: false
- name: Setup marine
uses: fluencelabs/setup-marine@v1
with:
artifact-name: marine
- name: Download sqlite-wasm
uses: actions/download-artifact@v4
continue-on-error: true
with:
name: sqlite-wasm
path: artifacts/
- name: Build
run: ./build.sh
- name: Run cargo test
run: cargo test --release --all-features
- name: Run cargo fmt
run: cargo fmt --all -- --check
# - name: Run cargo clippy
# run: cargo clippy --all --all-features