Skip to content

Add @RUBY_TEST_NAME capture for test nodes #15

Add @RUBY_TEST_NAME capture for test nodes

Add @RUBY_TEST_NAME capture for test nodes #15

Workflow file for this run

---
on:
push:
branches: [main]
pull_request:
branches:
- main
name: CI
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
with:
# By default actions/checkout checks out a merge commit. Check out the PR head instead.
# https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: wasm32-wasip1
override: true
components: rustfmt, clippy
- name: Lint (clippy)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --all-targets
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
build:
name: Build and test
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.86
target: wasm32-wasip1
override: true
- name: Build extension
uses: actions-rs/cargo@v1
with:
command: build
args: --target wasm32-wasip1 --all-features
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Test with latest nextest release
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --all-features --profile ci