summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-06-19 17:50:45 +0200
committerGitHub <noreply@github.com>2022-06-19 17:50:45 +0200
commita6414bb79199cdc5b5da86c21e732255e11fc053 (patch)
tree0d1a2ef4cb5c2a5fd6f7aeaf72e84ca5b917ae8a
parenta4c09052caa9830554515f337dd127ff3d2fbbd1 (diff)
parentc3770a00c91b56d8284be78dc5212323afcee2d1 (diff)
Merge pull request #283 from matthiasbeyer/cron-build
Add cron job
-rw-r--r--.github/workflows/cron.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml
new file mode 100644
index 0000000..e54c040
--- /dev/null
+++ b/.github/workflows/cron.yml
@@ -0,0 +1,61 @@
+name: Cron
+
+on:
+ schedule:
+ # every friday at 10:00 am
+ - cron: '0 10 * * 5'
+
+jobs:
+ check:
+ name: Check
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ rust:
+ - 1.56.1
+ - stable
+
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v2.4.0
+
+ - name: Install toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: ${{ matrix.rust }}
+ minimal: true
+ override: true
+
+ - name: Run cargo check
+ uses: actions-rs/cargo@v1
+ with:
+ command: check
+ args: --all --all-features --examples
+
+ clippy:
+ needs: [check]
+ name: Clippy
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ rust:
+ - stable
+
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v2.4.0
+
+ - name: Install toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: ${{ matrix.rust }}
+ minimal: true
+ override: true
+ components: clippy
+
+ - name: Run cargo clippy
+ uses: actions-rs/cargo@v1
+ with:
+ command: clippy
+ args: --all-targets --all-features -- -D warnings
+