Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Dec 14, 2023
1 parent cc5d91e commit 82d14e4
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,53 @@
# GitHub Actions with Conditional Job Running Based on Commit Message
#
#
# --------------------------------------------------------------------------------
#
#
# Following jobs will always run
#
#
# - `clippy`
# - `test`
# - `examples`
#
#
# Following jobs will be run when no keywords were found in commit message)
#
#
# - `compile-sqlite`
# - `sqlite`
# - `compile-mysql`
# - `mysql`
# - `mariadb`
# - `compile-postgres`
# - `postgres`
#
#
# Following jobs will be run if keywords `[issues]` were found in commit message
#
#
# - Jobs that will always run
# - `issues`
#
#
# Following jobs will be run if keywords `[cli]` were found in commit message
#
#
# - Jobs that will always run
# - `cli`
#
#
# Following jobs will be run if keywords `[sqlite]` were found in commit message
#
#
# - Jobs that will always run
# - `compile-sqlite`
# - `sqlite`
#
#
# Following jobs will be run if keywords `[mysql]` were found in commit message
#
#
# - Jobs that will always run
# - `compile-mysql`
# - `mysql`
# - `mariadb`
#
#
# Following jobs will be run if keywords `[postgres]` were found in commit message
#
#
# - Jobs that will always run
# - `compile-postgres`
# - `postgres`


name: tests

on:
Expand All @@ -72,6 +73,7 @@ env:
CARGO_TERM_COLOR: always

jobs:

init:
name: Init
runs-on: ubuntu-latest
Expand Down Expand Up @@ -297,7 +299,7 @@ jobs:
}}
runs-on: ubuntu-latest
env:
DATABASE_URL: 'sqlite::memory:'
DATABASE_URL: "sqlite::memory:"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -329,7 +331,7 @@ jobs:
}}
runs-on: ubuntu-latest
env:
DATABASE_URL: 'mysql://root:@localhost'
DATABASE_URL: "mysql://root:@localhost"
strategy:
fail-fast: false
matrix:
Expand All @@ -347,7 +349,7 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_ROOT_PASSWORD:
ports:
- '3306:3306'
- "3306:3306"
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
Expand Down Expand Up @@ -379,7 +381,7 @@ jobs:
}}
runs-on: ubuntu-latest
env:
DATABASE_URL: 'mysql://root:@localhost'
DATABASE_URL: "mysql://root:@localhost"
strategy:
fail-fast: false
matrix:
Expand All @@ -397,7 +399,7 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_ROOT_PASSWORD:
ports:
- '3306:3306'
- "3306:3306"
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
Expand Down Expand Up @@ -428,7 +430,7 @@ jobs:
}}
runs-on: ubuntu-latest
env:
DATABASE_URL: 'postgres://root:root@localhost'
DATABASE_URL: "postgres://root:root@localhost"
strategy:
fail-fast: false
matrix:
Expand All @@ -443,7 +445,7 @@ jobs:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- '5432:5432'
- "5432:5432"
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down

0 comments on commit 82d14e4

Please sign in to comment.