diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d5e832..48eaf4b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,10 +17,9 @@ jobs: name: Build runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: rustup show active-toolchain - - run: rustup component add rustfmt clippy - name: Configure Rust cache uses: Swatinem/rust-cache@v2 @@ -64,3 +63,11 @@ jobs: - name: Check formatting run: cargo fmt --all --check + + - name: Audit dependencies + run: | + cargo install cargo-audit --locked + cargo audit + + - name: Validate web extension JS syntax + run: node --check webext/add-on/*.js diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..3488a6b --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.85" +components = ["rustfmt", "clippy"]