Skip to content

Feature/1.2.0/bugfixes #50

Feature/1.2.0/bugfixes

Feature/1.2.0/bugfixes #50

name: 'Build pull request'
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: ./package-lock.json
- name: Install dependencies
run: npm install
- name: Install stable Cargo toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
- name: Initialize rust cache
uses: Swatinem/rust-cache@v2
- name: Install wasm target
run: rustup target add wasm32-unknown-unknown
- name: Install trunk
run: cargo install trunk
- name: Build cargo
run: cargo build
- name: Run cargo tests
run: cargo test
- name: Build trunk
run: trunk build