Skip to content

Commit

Permalink
added lint step
Browse files Browse the repository at this point in the history
  • Loading branch information
lexa-diky committed Jun 6, 2024
1 parent 1c51871 commit a262242
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ jobs:
- name: Run tests
run: cargo test --verbose

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout repository
- uses: Swatinem/rust-cache@v2
name: Cache dependencies
with:
cache-all-crates: true
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Run Clippy
continue-on-error: true
run: cargo clippy -- -Dwarnings

publish:
runs-on: ubuntu-latest
needs:
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/util/byte_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl ByteBuffer {
}

mod test {

use crate::compiler::util::ByteBuffer;

#[test]
fn byte_push() {
Expand Down
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

use crate::cli::{run_cli};
use std::env::temp_dir;
use std::fs::File;
use std::io::Read;
use std::path::PathBuf;
use crate::cli::{run_build, run_cli};

mod cli;
mod compiler;
Expand Down

0 comments on commit a262242

Please sign in to comment.