Skip to content

Commit 7e1aabb

Browse files
authored
Add on_pullrequest trigger to CI (#10)
* Add `on_pullrequest` trigger to CI * Set the CI to run either on push to certain branches or pr
1 parent 36198f7 commit 7e1aabb

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

.github/workflows/build.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main", "develop", "release"]
47

58
env:
69
CARGO_TERM_COLOR: always
@@ -20,4 +23,4 @@ jobs:
2023
steps:
2124
- uses: actions/checkout@v2
2225
- name: 📦Check package generation
23-
run: cargo package
26+
run: cargo package

.github/workflows/docs.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Docs
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main", "develop", "release"]
47

58
env:
69
CARGO_TERM_COLOR: always

.github/workflows/package.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Package
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main", "develop", "release"]
47

58
env:
69
CARGO_TERM_COLOR: always

.github/workflows/rust.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Code check
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main", "develop", "release"]
47

58
env:
69
CARGO_TERM_COLOR: always

.github/workflows/tests.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Tests
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main", "develop", "release"]
47

58
env:
69
CARGO_TERM_COLOR: always

0 commit comments

Comments
 (0)