njord-rs / njord

A versatile, feature-rich Rust ORM ⛵
https://njord.rs
BSD 3-Clause "New" or "Revised" License
409 stars 21 forks source link

Improve workflow to run things in parellel #162

Open mjovanc opened 1 month ago

mjovanc commented 1 month ago

I want to run tests parallel to save time and get faster feedback if something is broken instead of doing tests after each other.

I want something like:

        +----------+
        |   BUILD  |
        +----------+
             |
             V
       +------------------+
       |   UNIT TESTS     |
       +------------------+
            /       \
           /         \
          V           V
 +----------------+   +----------------+
 | UNIT TEST (sqlite) | | UNIT TEST (mysql) |
 +----------------+   +----------------+
           |               |
           +-------+-------+
                   |
                   V
          +-------------------+
          |  INTEGRATION TESTS |
          +-------------------+
              /           \
             /             \
            V               V
 +---------------------+   +---------------------+
 | INTEGRATION TEST    |   | INTEGRATION TEST    |
 |      (sqlite)      |   |      (mysql)       |
 +---------------------+   +---------------------+
             |                          
             V
         +------+
         |  DONE  |
         +--------+
mjovanc commented 4 weeks ago

Note that both integration tests needs to be passed in order for the workflow to be green.