Skip to content

update jbonsai to 0.1.1 #68

update jbonsai to 0.1.1

update jbonsai to 0.1.1 #68

Workflow file for this run

name: Test
env:
APP_NAME: om-syrinx
on:
pull_request:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
cache: pnpm
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
.cargo-cache
target/
key: cargo-${{ matrix.os }}
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: test-build-${{ matrix.os }}
path: |
${{ env.APP_NAME }}.*.node
Cargo.lock
if-no-files-found: error
test:
needs: build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [18, 20, 22]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: test-build-${{ matrix.os }}
- name: Test
run: pnpm test
shell: bash