diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 560c326eb5f07251dfb3b7e917723d2ac79a572d..1d7efa6373c706ab7c10a8563e3da9d824e6d095 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,9 @@ cache: &global_cache
 variables:
   CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
 
+before_script:
+  - rustup toolchain install nightly
+
 lint:
   stage: test
   script:
@@ -28,7 +31,7 @@ test:
   stage: test
   script:
     - cargo install junitify
-    - cargo test -- --format=json -Z unstable-options --report-time | junitify --out $CI_PROJECT_DIR/tests/
+    - cargo +nightly test -- --format=json -Z unstable-options --report-time | junitify --out $CI_PROJECT_DIR/tests/
   artifacts:
     when: always
     reports: