From afbc24e34ca6ddef80129dc0814aadfb53f2c7ad Mon Sep 17 00:00:00 2001 From: Gustavo Date: Wed, 6 Mar 2024 16:24:06 -0300 Subject: [PATCH] Test TS_RS_EXPORT_DIR first to get error faster --- .github/workflows/test.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10fb9a0..5be1629 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -81,6 +81,12 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable + - name: Test with export env + run: | + ls + TS_RS_EXPORT_DIR=output cargo test --no-default-features + shopt -s globstar + tsc ts-rs/output/tests-out/**/*.ts --noEmit --noUnusedLocals --strict - name: No features run: | cargo test --no-default-features @@ -91,8 +97,3 @@ jobs: cargo test --all-features shopt -s globstar tsc ts-rs/tests-out/**/*.ts --noEmit --noUnusedLocals --strict - - name: test with export env - run: | - TS_RS_EXPORT_DIR=output cargo test --no-default-features - shopt -s globstar - tsc ts-rs/output/tests-out/**/*.ts --noEmit --noUnusedLocals --strict