FuelLabs / sway-applications

Swaypplications
https://sway-applications.vercel.app/
Apache License 2.0
1.58k stars 540 forks source link

Split CI to run Sway, Rust or both test suites #751

Open Braqzen opened 10 months ago

Braqzen commented 10 months ago

Motivation

Currently, CI forces Rust tests. This is an artefact of our journey to this point when in fact most of it isn't needed and should be in Sway instead.

CI should use conditional checks to run 1 or both test suites per project.

In the ENV variable, where we store the Rust version, create some arrays to contain the projects. 3 New variables. 1 array for both sway and rust tests, and then 1 for sway and 1 for rust. When iterating in the matrix check if the array contains the current matrix project and run the appropriate commands