Adding replace expression #286
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 | |
on: pull_request | |
jobs: | |
test-node: | |
runs-on: ubuntu-latest | |
name: "${{ matrix.os }} node:${{ matrix.node }}" | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
node: ["18", "20"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- name: Install latest Rust nightly | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly-2024-05-14 | |
components: rustfmt, clippy | |
- name: Check yarn version | |
run: yarn --version | |
- name: Install Node Dependencies | |
run: yarn install | |
- name: Build Binary | |
run: yarn build:debug | |
- name: Run Linting | |
run: yarn lint:ts | |
- name: Run Tests | |
run: yarn test | |
- name: Build JS | |
run: yarn build:ts | |
test-bun: | |
runs-on: ubuntu-latest | |
name: "${{ matrix.os }} bun:${{ matrix.bun }}" | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
bun: ["1"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install latest Rust nightly | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly-2024-05-14 | |
components: rustfmt, clippy | |
- name: Bun version | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Bun Install Dependencies | |
run: bun install | |
- name: Bun Build Binary | |
run: bun run build:debug | |
- name: Bun Run Linting | |
run: bun lint:ts | |
- name: Bun Run Tests | |
run: bun run test | |
- name: Bun Build JS | |
run: bun run build:ts |