Skip to content

Commit 9fdbc39

Browse files
authored
Merge pull request #3 from belchior/adds-test-exection-on-ci
adds text execution on ci
2 parents 1607810 + 9d7f11b commit 9fdbc39

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

.github/workflows/pull-requests.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on: [push]
2+
3+
name: CI
4+
5+
jobs:
6+
test:
7+
name: Run integration tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions-rs/toolchain@v1
12+
with:
13+
toolchain: stable
14+
- uses: actions-rs/cargo@v1
15+
with:
16+
command: test
17+
- uses: actions-rs/cargo@v1
18+
with:
19+
command: test
20+
args: --features postgresql --test feature_flag_postgresql

src/delete/delete.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl<'a> Delete<'a> {
197197
/// The with clause, this method can be used enabling the feature flag `postgresql`
198198
///
199199
/// # Examples
200-
/// ```
200+
/// ```text
201201
/// use sql_query_builder as sql;
202202
///
203203
/// let deactivated_users = sql::Select::new().select("id").from("users").where_clause("ative = false");

src/insert/insert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl<'a> Insert<'a> {
214214
/// The with clause, this method can be used enabling the feature flag `postgresql`
215215
///
216216
/// # Examples
217-
/// ```
217+
/// ```text
218218
/// use sql_query_builder as sql;
219219
///
220220
/// let active_users = sql::Select::new().select("*").from("users_bk").where_clause("ative = true");

src/select/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl<'a> Select<'a> {
320320
/// The with clause, this method can be used enabling the feature flag `postgresql`
321321
///
322322
/// # Examples
323-
/// ```
323+
/// ```text
324324
/// use sql_query_builder as sql;
325325
///
326326
/// let logins = sql::Select::new().select("login").from("users").where_clause("id in ($1)");

src/update/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl<'a> Update<'a> {
212212
/// The with clause, this method can be used enabling the feature flag `postgresql`
213213
///
214214
/// # Examples
215-
/// ```
215+
/// ```text
216216
/// use sql_query_builder as sql;
217217
///
218218
/// let user = sql::Insert::new()

0 commit comments

Comments
 (0)