Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI optimizations #84

Merged
merged 11 commits into from
Sep 16, 2021
15 changes: 10 additions & 5 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1

- name: Checkout sources
uses: actions/checkout@v2.3.4
with:
fetch-depth: 50
- name: Run cargo audit
uses: actions-rs/audit-check@v1

- name: Run cargo audit
uses: actions-rs/audit-check@v1.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 8 additions & 3 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,25 @@ jobs:
env:
RUST_BACKTRACE: full
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1

- name: Checkout sources & submodules
uses: actions/checkout@master
uses: actions/checkout@v2.3.4
with:
fetch-depth: 5
submodules: recursive

- name: Install toolchain
uses: actions-rs/toolchain@master
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt
override: true

- name: Checking style
uses: actions-rs/cargo@master
uses: actions-rs/cargo@v1.0.1
with:
command: fmt
toolchain: stable
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,32 @@ jobs:
env:
RUST_BACKTRACE: full
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1

- name: Checkout sources & submodules
uses: actions/checkout@master
uses: actions/checkout@v2.3.4
with:
fetch-depth: 5
submodules: recursive

- name: Install toolchain
uses: actions-rs/toolchain@master
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt
override: true

- name: Checking clippy
uses: actions-rs/cargo@master
uses: actions-rs/cargo@v1.0.1
with:
command: clippy
toolchain: stable
args: --all

- name: Checking clippy
uses: actions-rs/cargo@master
uses: actions-rs/cargo@v1.0.1
with:
command: clippy
toolchain: stable
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
labels: []
schedule:
interval: "daily"
rebase-strategy: disabled
open-pull-requests-limit: 2

- package-ecosystem: github-actions
directory: "/"
labels: []
schedule:
interval: "daily"
rebase-strategy: disabled
open-pull-requests-limit: 2
Loading