ci: no need to build tests on PR branches (#1348)

This commit is contained in:
Boshen authored and GitHub committed 2023-11-16 17:32:10 +08:00
1 parent aee733d250
commit c1c2a01135
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
[alias]
# Do not append `--` or it will break IDEs
ck = "check --workspace --all-targets --all-features --locked"
ck = "check --workspace --all-targets --locked"
lint = "clippy --workspace --all-targets --all-features"
codecov = "llvm-cov --workspace --ignore-filename-regex tasks"
coverage = "run -p oxc_coverage --release --"
+3 -1
View File
@@ -42,8 +42,10 @@ jobs:
- name: Cargo check
run: cargo ck
# Only need to build the test to create a warm cache on the main branch
- name: Build cache by Cargo Check and Cargo Test
run: cargo test run --no-run --workspace --all-features
if: ${{ github.ref_name == 'main' }}
run: cargo test run --no-run --workspace
wasm:
name: Check Wasm