fix(facet-typescript): emit unit enum variants as strings in mixed tagged enums #6373
Workflow file for this run
This file contains hidden or 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
| # HANDWRITTEN: facet-dev hands off my pipelines | |
| name: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| jobs: | |
| test-x86_64-unknown-linux-gnu: | |
| runs-on: depot-ubuntu-24.04-32 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install system dependencies | |
| run: apt-get update && apt-get install -y zlib1g-dev | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Run tests with coverage | |
| shell: bash | |
| env: | |
| # Only replay proptest regressions in CI | |
| PROPTEST_CASES: 0 | |
| run: | | |
| # Install nightly for coverage with doctests | |
| rustup toolchain install nightly | |
| # Run unit and integration tests with coverage | |
| cargo +nightly llvm-cov --no-report nextest --features ci | |
| # Run doc tests with coverage (requires nightly) | |
| cargo +nightly llvm-cov --no-report --doc --features ci | |
| # Generate merged coverage report | |
| mkdir coverage | |
| cargo +nightly llvm-cov report --doctests --lcov --output-path coverage/lcov.info | |
| - name: ✨ Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage/lcov.info | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| nostd: | |
| runs-on: depot-ubuntu-24.04-32 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Run nostd tests | |
| shell: bash | |
| run: | | |
| just nostd-ci | |
| miri: | |
| runs-on: depot-ubuntu-24.04-64 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-miri-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Run miri | |
| shell: bash | |
| run: | | |
| export CI=true | |
| just miri | |
| miri-json: | |
| runs-on: depot-ubuntu-24.04-64 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-miri-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Run miri for facet-json | |
| shell: bash | |
| run: | | |
| export CI=true | |
| just miri-json | |
| valgrind: | |
| runs-on: depot-ubuntu-24.04-32 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install valgrind and nodejs | |
| run: apt-get update && apt-get install -y valgrind nodejs | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Run facet-json tests under valgrind | |
| shell: bash | |
| run: | | |
| just valgrind -p facet-json | |
| nightly: | |
| runs-on: depot-ubuntu-24.04-32 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-miri-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Run nightly feature tests (simd auto-detected) | |
| shell: bash | |
| env: | |
| # Only replay proptest regressions in CI | |
| PROPTEST_CASES: 0 | |
| run: | | |
| cargo nextest run --package facet-core | |
| msrv: | |
| runs-on: depot-ubuntu-24.04-32 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Check MSRV | |
| shell: bash | |
| run: | | |
| just msrv | |
| docs: | |
| runs-on: depot-ubuntu-24.04-32 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Check documentation | |
| shell: bash | |
| env: | |
| RUSTDOCFLAGS: -D warnings | |
| run: | | |
| just docs | |
| lockfile: | |
| runs-on: depot-ubuntu-24.04-4 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Check lockfile is updated | |
| shell: bash | |
| run: | | |
| cargo update --workspace --locked | |
| clippy: | |
| runs-on: depot-ubuntu-24.04-16 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-amd64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Run clippy | |
| shell: bash | |
| run: | | |
| cargo clippy --workspace --all-features --all-targets --keep-going -- -D warnings --allow deprecated | |
| test-aarch64-apple-darwin: | |
| runs-on: depot-macos-15 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-bin: "false" | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-nextest | |
| - name: ✨ Run nextest tests (macOS) | |
| shell: bash | |
| env: | |
| # Only replay proptest regressions in CI | |
| PROPTEST_CASES: 0 | |
| run: | | |
| cargo nextest run --features ci | |
| test-aarch64-unknown-linux-gnu: | |
| runs-on: depot-ubuntu-24.04-arm-32 | |
| container: | |
| image: ghcr.io/facet-rs/facet-ci:latest-arm64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ✨ Run nextest tests (Linux ARM64) | |
| shell: bash | |
| env: | |
| # Only replay proptest regressions in CI | |
| PROPTEST_CASES: 0 | |
| run: | | |
| cargo nextest run --features ci | |
| test-x86_64-pc-windows-msvc: | |
| runs-on: depot-windows-2025-32 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-nextest | |
| - name: ✨ Run nextest tests (Windows) | |
| shell: bash | |
| env: | |
| # Only replay proptest regressions in CI | |
| PROPTEST_CASES: 0 | |
| run: | | |
| cargo nextest run --features ci |