| 872 | 872 | | } |
| 873 | 873 | | |
| 874 | 874 | | #[test] |
| 875 | | − | fn deploy_builds_rust_on_the_larger_machine_with_its_target_cached() { |
| 875 | + | fn deploy_builds_on_ubuntu_latest_with_its_target_cached() { |
| 876 | 876 | | let deploy = read("deploy.yml"); |
| 877 | 877 | | for stage in ["core", "edge", "front"] { |
| 878 | 878 | | let job = deploy.jobs.iter().find(|j| j.id == stage).unwrap(); |
| ⋯ |
| 889 | 889 | | }; |
| 890 | 890 | | expr::interpolate_value(&job.runs_on, &scope).unwrap() |
| 891 | 891 | | }; |
| 892 | | − | assert_eq!(on(true, false), json!("g1t-4core"), "{stage}"); |
| 893 | | − | // The runner's image is built with the job's own Docker Engine. |
| 894 | | − | assert_eq!(on(false, true), json!("g1t-4core"), "{stage}"); |
| 892 | + | // Every job on ubuntu-latest, as on GitHub: 4 vCPU in this public |
| 893 | + | // repository (g1t_contracts::actions::instance_for), Rust builds and |
| 894 | + | // the runner's image included. |
| 895 | + | assert_eq!(on(true, false), json!("ubuntu-latest"), "{stage}"); |
| 896 | + | assert_eq!(on(false, true), json!("ubuntu-latest"), "{stage}"); |
| 895 | 897 | | assert_eq!(on(false, false), json!("ubuntu-latest"), "{stage}"); |
| 896 | 898 | | } |
| 897 | 899 | | let source = std::fs::read_to_string(workflows_dir().join("deploy.yml")).unwrap(); |