1
0
Эх сурвалжийг харах

ci: use filtering for all

Jonathan Kelley 3 жил өмнө
parent
commit
a858934d41

+ 13 - 2
.github/workflows/macos.yml

@@ -1,7 +1,18 @@
-on: [push, pull_request]
-
 name: macOS tests
 
+on:
+  push:
+    paths:
+      - packages/**
+      - examples/**
+      - src/**
+      - .github/**
+      - lib.rs
+      - Cargo.toml
+  pull_request:
+    branches:
+      - master
+
 jobs:
   test:
     name: Test Suite

+ 10 - 2
.github/workflows/windows.yml

@@ -1,9 +1,17 @@
 name: windows
+
 on:
   push:
+    paths:
+      - packages/**
+      - examples/**
+      - src/**
+      - .github/**
+      - lib.rs
+      - Cargo.toml
+  pull_request:
     branches:
       - master
-  pull_request:
 
 jobs:
   test:
@@ -50,7 +58,7 @@ jobs:
         run: |
           rustc -Vv
           cargo -V
-          set RUST_BACKTRACE=1 
+          set RUST_BACKTRACE=1
           cargo build --features "desktop, ssr, router"
           cargo test --features "desktop, ssr, router"
         shell: cmd