@@ -95,38 +95,35 @@ jobs:
9595 - name : Install cargo-llvm-cov
9696 uses : taiki-e/install-action@cargo-llvm-cov
9797
98- - name : Set coverage environment
99- shell : bash
98+ - name : Clean coverage artifacts
10099 run : |
101- # source exported env into this shell (shell will strip quotes)
100+ # since I cant seem properly to get this into $GITHUB_ENV, I just set it wherever its needed.
102101 source <(cargo llvm-cov show-env --export-prefix)
103-
104- # persist variables
105- echo "RUSTFLAGS=${RUSTFLAGS:-}" >> $GITHUB_ENV
106- echo "CARGO_LLVM_COV_SHOW_ENV=${CARGO_LLVM_COV_SHOW_ENV:-}" >> $GITHUB_ENV
107- echo "CARGO_LLVM_COV_TARGET_DIR=${CARGO_LLVM_COV_TARGET_DIR:-}" >> $GITHUB_ENV
108- echo "CARGO_LLVM_COV_BUILD_DIR=${CARGO_LLVM_COV_BUILD_DIR:-}" >> $GITHUB_ENV
109-
110- - name : Clean coverage artifacts
111- run : cargo llvm-cov clean --workspace
102+ cargo llvm-cov clean --workspace
112103
113104 - name : Build with instrumentation
114- run : cargo build --workspace
105+ run : |
106+ source <(cargo llvm-cov show-env --export-prefix)
107+ cargo build --workspace
115108
116109 - name : Run Playwright tests
117110 env :
118111 CI : true
119112 COVERAGE : 1
120113 SKIP_BUILD : 1
121114 run : |
115+ source <(cargo llvm-cov show-env --export-prefix)
122116 cd frontend
123117 npx playwright test
124118
125119 - name : Run Rust tests
126- run : cargo test --workspace
120+ run : |
121+ source <(cargo llvm-cov show-env --export-prefix)
122+ cargo test --workspace
127123
128124 - name : Generate coverage reports
129125 run : |
126+ source <(cargo llvm-cov show-env --export-prefix)
130127 cargo llvm-cov report --lcov --output-path lcov.info --ignore-filename-regex "src/bin/coordinator.rs|host_agent/src/main.rs"
131128 cargo llvm-cov report --html --output-dir coverage --ignore-filename-regex "src/bin/coordinator.rs|host_agent/src/main.rs"
132129
0 commit comments