Skip to content

Commit 306ffb3

Browse files
committed
Improve workflows
1 parent dccc918 commit 306ffb3

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
run: |
1616
rustup component add rustfmt
1717
rustup component add clippy
18-
- name: Build
19-
run: cargo build --verbose
20-
- name: Run tests
21-
run: cargo test --verbose
2218
- name: Run fmt
2319
run: cargo fmt -- --check
2420
- name: Run clippy
2521
run: cargo clippy -- -D warnings
22+
- name: Build
23+
run: cargo build --tests --verbose
24+
- name: Run tests
25+
run: cargo test --verbose
2626

2727
deploy:
2828
needs: test

.github/workflows/macos.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
run: |
1616
rustup component add rustfmt
1717
rustup component add clippy
18-
- name: Build
19-
run: cargo build --verbose
20-
- name: Run tests
21-
run: cargo test --verbose
2218
- name: Run fmt
2319
run: cargo fmt -- --check
2420
- name: Run clippy
2521
run: cargo clippy -- -D warnings
22+
- name: Build
23+
run: cargo build --tests --verbose
24+
- name: Run tests
25+
run: cargo test --verbose
2626

2727
deploy:
2828
needs: test

.github/workflows/windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
run: |
1616
rustup component add rustfmt
1717
rustup component add clippy
18-
- name: Build
19-
run: cargo build --verbose
20-
- name: Run tests
21-
run: cargo test --verbose
2218
- name: Run fmt
2319
run: cargo fmt -- --check
2420
- name: Run clippy
2521
run: cargo clippy -- -D warnings
22+
- name: Build
23+
run: cargo build --tests --verbose
24+
- name: Run tests
25+
run: cargo test --verbose
2626

2727
deploy:
2828
needs: test

src/commands/exercises.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ mod tests {
9292
use reqwest::Url;
9393
use std::{path::Path, slice::Iter};
9494
use tmc_langs::{
95-
ClientError, Language, Course, CourseDetails, CourseExercise, DownloadOrUpdateCourseExercisesResult,
96-
DownloadResult, ExercisesDetails, LangsError, NewSubmission, Organization,
95+
ClientError, Course, CourseDetails, CourseExercise, DownloadOrUpdateCourseExercisesResult,
96+
DownloadResult, ExercisesDetails, LangsError, Language, NewSubmission, Organization,
9797
SubmissionFinished, SubmissionStatus,
9898
};
9999
pub struct IoTest<'a> {

src/commands/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use tmc_langs::{
1212
};
1313

1414
pub const PLUGIN: &str = "tmc_cli_rust";
15-
pub const PLUGIN_VERSION: &str = "1.0.5";
15+
pub const PLUGIN_VERSION: &str = env!("CARGO_PKG_VERSION");
1616
pub const SUCCESSFUL_LOGIN: &str = "Logged in successfully!";
1717
pub const WRONG_LOGIN: &str = "Wrong username or password";
1818

0 commit comments

Comments
 (0)