Skip to content

Commit

Permalink
👷 Fix workflow (#4)
Browse files Browse the repository at this point in the history
* update workflow

* add sast checks

---------

Co-authored-by: Lia <[email protected]>
  • Loading branch information
TadaaLiia and Lia authored Mar 5, 2024
1 parent 14deafd commit c97112b
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/yxcvbn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,51 @@ on:
branches:
- master
push:
branches:
- master


jobs:
clippy-rustfmt:
sast:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install stable
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy, rustfmt, audit, check

- name: Run cargo audit
uses: actions-rs/cargo@v1
with:
command: audit
components: clippy, rustfmt


- name: Run rustfmt
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check --verbose

- name: Lint
uses: actions-rs/clippy-check@v1
- name: Clippy
uses: actions-rs/cargo@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --tests --benches
name: lint
command: clippy

- name: Check
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace

- name: Install cargo-audit
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-audit

- name: Audit
uses: actions-rs/cargo@v1
with:
command: audit

test:
strategy:
Expand Down

0 comments on commit c97112b

Please sign in to comment.