summaryrefslogtreecommitdiffstats
path: root/.github/workflows/commit-workflow.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/commit-workflow.yml')
-rw-r--r--.github/workflows/commit-workflow.yml22
1 files changed, 10 insertions, 12 deletions
diff --git a/.github/workflows/commit-workflow.yml b/.github/workflows/commit-workflow.yml
index bf63d648..23288c28 100644
--- a/.github/workflows/commit-workflow.yml
+++ b/.github/workflows/commit-workflow.yml
@@ -2,24 +2,21 @@ name: commit-workflow
on:
push:
- branches: [ main ]
+ branches: [main]
workflow_dispatch:
- branches: [ main ]
+ branches: [main]
pull_request:
- branches: [ main ]
+ branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
-
cargo-fmt:
-
name: Run cargo fmt
runs-on: Ubuntu-20.04
steps:
-
- name: Checkout
uses: actions/checkout@v2
@@ -38,12 +35,10 @@ jobs:
args: -- --check
cargo-clippy:
-
name: Run cargo clippy
runs-on: Ubuntu-20.04
steps:
-
- name: Checkout
uses: actions/checkout@v2
@@ -65,13 +60,11 @@ jobs:
command: clippy
cargo-test:
-
name: Run cargo test
runs-on: Ubuntu-20.04
needs: [cargo-fmt, cargo-clippy]
steps:
-
- name: Checkout
uses: actions/checkout@v2
@@ -85,6 +78,13 @@ jobs:
with:
command: version
+ - name: Cargo build dummy plugin
+ uses: actions-rs/cargo@v1
+ # https://github.com/marketplace/actions/rust-cargo
+ with:
+ command: build
+ args: -p tedge_dummy_plugin
+
- name: Cargo test
uses: actions-rs/cargo@v1
# https://github.com/marketplace/actions/rust-cargo
@@ -93,13 +93,11 @@ jobs:
args: --no-fail-fast
cargo-build:
-
name: Run cargo build
runs-on: Ubuntu-20.04
needs: [cargo-fmt, cargo-clippy]
steps:
-
- name: Checkout
uses: actions/checkout@v2