I am trying to make CI for a Flutter app in GitLab. I set up a docker container with cirrusci/flutter:2.8.1. When I run my .gitlab-ci.yml it fails because flutter can't find lib/main.dart:3:8: Error: Error when reading 'lib/Screens/maps.dart': No such file or directory import 'package:navitank/Screens/maps.dart';
. This is nonsense because the file exists and it works when I try it on my machine. But it won't work in docker.
My .gitlab-ci.yml looks like this:
image: cirrusci/flutter:2.8.1
stages:
- build
- test
doctor:
stage: build
script:
- flutter doctor
build:
stage: build
script:
- flutter build appbundle
widget-test:
stage: test
script:
- flutter test
Does someone have an idea or a solution?