Cmn 1250 add joins #351
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test TypeScript interface | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
RUSTFLAGS: -D warnings | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
name: Build and test TypeScript interface | |
runs-on: ubuntu-22.04 | |
container: docker.io/node:18-bullseye | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install tools | |
run: | | |
apt-get update \ | |
&& apt-get install --assume-yes \ | |
curl binaryen gcc libssl-dev make pkg-config | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rust-std, rustfmt | |
targets: wasm32-unknown-unknown | |
- name: Cache Rust crates | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: Cache npm test dependencies | |
uses: actions/cache@v3 | |
id: cache-npm-test-deps | |
continue-on-error: false | |
with: | |
path: ./tests/typescript/node_modules/ | |
key: ${{ runner.os }}-npm-${{ hashFiles('./tests/typescript/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-npm- | |
- name: Install wasm-pack | |
uses: baptiste0928/cargo-install@v1 | |
with: | |
crate: wasm-pack | |
version: "0.12.1" | |
- name: Install npm test dependencies | |
if: steps.cache-npm-test-deps.outputs.cache-hit != 'true' | |
working-directory: ./tests/typescript | |
run: npm clean-install | |
- name: Check TypeScript code formatting | |
working-directory: ./tests/typescript | |
run: npx prettier tests --list-different | |
- name: Execute Typescript tests | |
working-directory: ./tests/typescript | |
run: npm test |