summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yaml
blob: 26310774f26ecc6c3cc46b22275a0fdd12a53109 (plain)
name: Rust CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  test-std:
    name: Test with default features on stable Rust
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          submodules: true

      - name: Install stable Rust toolchain
        run: rustup update stable

      - name: Build (stable)
        run: cargo +stable build --workspace --exclude wasm-testsuite

      - name: Run tests (stable)
        run: cargo +stable test --workspace --exclude wasm-testsuite

      - name: Run MVP testsuite
        run: cargo +stable test-mvp

  test-no-std:
    name: Test without default features on nightly Rust
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          submodules: true

      - name: Install nightly Rust toolchain
        run: rustup update stable nightly

      - name: Build (nightly, no default features)
        run: cargo +nightly build --workspace --exclude wasm-testsuite --no-default-features

      - name: Run tests (nightly, no default features)
        run: cargo +nightly test --workspace --exclude wasm-testsuite --no-default-features

      - name: Run MVP testsuite (nightly)
        run: cargo +nightly test-mvp