diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1f4e5767..82adc46d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,16 +16,24 @@ env: RUSTFLAGS: "-Dwarnings" jobs: - lint-fmt-test: - runs-on: ubuntu-latest + ci: + name: Check (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up cargo cache uses: Swatinem/rust-cache@v2 - - name: Cargo check --all - run: cargo check + - name: Build + run: cargo build --all --all-features + + - name: Cargo check + run: cargo check --all --all-features - name: Rustfmt run: cargo fmt --all -- --check @@ -35,3 +43,24 @@ jobs: - name: Test run: cargo test --all --all-features + + cargo-machete: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Machete + uses: bnjbvr/cargo-machete@main + + typos: + # https://github.com/crate-ci/typos + # install and run locally: cargo install typos-cli && typos + name: typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v4 + + - name: Check spelling of entire workspace + uses: crate-ci/typos@master diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 00000000..df782e1e --- /dev/null +++ b/.typos.toml @@ -0,0 +1,6 @@ +[default.extend-words] +# Don't correct german words +Ordner = "Ordner" +Elemente = "Elemente" +Alle = "Alle" +Ein = "Ein" diff --git a/src/config/keybindings.rs b/src/config/keybindings.rs index 11200979..ece7ee45 100644 --- a/src/config/keybindings.rs +++ b/src/config/keybindings.rs @@ -122,7 +122,7 @@ pub struct FileDialogKeyBindings { } impl FileDialogKeyBindings { - /// Checks wether any of the given keybindings is pressed. + /// Checks whether any of the given keybindings is pressed. pub fn any_pressed( ctx: &egui::Context, keybindings: &Vec, diff --git a/src/data/directory_content.rs b/src/data/directory_content.rs index e49090a7..d5673e07 100644 --- a/src/data/directory_content.rs +++ b/src/data/directory_content.rs @@ -120,10 +120,10 @@ pub enum DirectoryContentState { /// If we are currently waiting for the loading process on another thread. /// The value is the timestamp when the loading process started. Pending(SystemTime), - /// If loading the direcotry content finished since the last update call. + /// If loading the directory content finished since the last update call. /// This is only returned once. Finished, - /// If loading the directory content was successfull. + /// If loading the directory content was successful. Success, /// If there was an error loading the directory content. /// The value contains the error message. diff --git a/src/file_dialog.rs b/src/file_dialog.rs index e6cc9ed9..299ba292 100644 --- a/src/file_dialog.rs +++ b/src/file_dialog.rs @@ -2028,7 +2028,7 @@ impl FileDialog { } } - /// Updates the contents of the currenly open directory. + /// Updates the contents of the currently open directory. /// TODO: Refactor fn ui_update_central_panel_content(&mut self, ui: &mut egui::Ui) { // Temporarily take ownership of the directory content.