...
This commit is contained in:
+13
-68
@@ -1,75 +1,20 @@
|
||||
# Dagger context ignore file.
|
||||
# Since we use explicit inclusion in ci/main.go (Base function),
|
||||
# we only need to ignore large or sensitive directories here to
|
||||
# avoid unnecessary upload overhead to the Dagger engine.
|
||||
|
||||
.git/
|
||||
.git
|
||||
.local/
|
||||
.local
|
||||
.cache/
|
||||
.cache
|
||||
.config/
|
||||
.config
|
||||
.atuin/
|
||||
.atuin
|
||||
.direnv/
|
||||
.direnv
|
||||
.gemini/
|
||||
.gemini
|
||||
.rustup/
|
||||
.rustup
|
||||
.ssh/
|
||||
.ssh
|
||||
.vscode/
|
||||
.vscode
|
||||
.vscode-server/
|
||||
.vscode-server
|
||||
.copilot/
|
||||
.copilot
|
||||
.dartServer/
|
||||
.dartServer
|
||||
.dart_tool/
|
||||
.dart_tool
|
||||
.dart-tool/
|
||||
.dart-tool
|
||||
.flutter/
|
||||
.flutter
|
||||
.pub-cache/
|
||||
.pub-cache
|
||||
fvm/
|
||||
fvm
|
||||
snap/
|
||||
snap
|
||||
node_modules/
|
||||
node_modules
|
||||
build/
|
||||
build
|
||||
android/.gradle/
|
||||
.gradle/
|
||||
.gradle
|
||||
Android/
|
||||
Android
|
||||
.android/
|
||||
.android
|
||||
.dart_tool/
|
||||
.fvm/
|
||||
.pub-cache/
|
||||
node_modules/
|
||||
ios/Pods/
|
||||
macos/Pods/
|
||||
linux/flutter/ephemeral/
|
||||
website/public/
|
||||
website/resources/
|
||||
*.log
|
||||
run*.log
|
||||
test_results.txt
|
||||
test_output.txt
|
||||
md5_*.txt
|
||||
IGNORE_ME
|
||||
.env
|
||||
.envrc
|
||||
.gitconfig
|
||||
.lesshst
|
||||
.tmux.conf
|
||||
.wget-hsts
|
||||
.zcompdump
|
||||
.zshrc
|
||||
.bash_logout
|
||||
.bashrc
|
||||
.profile
|
||||
.nix-profile
|
||||
.flutter-plugins-dependencies
|
||||
.dart-cli-completion/
|
||||
.dart-cli-completion
|
||||
|
||||
# Sensitive files
|
||||
.env*
|
||||
.ssh/
|
||||
|
||||
@@ -14,5 +14,7 @@ PATH_add .fvm/flutter_sdk/bin
|
||||
|
||||
PATH_add "$HOME/Android/Sdk/platform-tools"
|
||||
|
||||
export DAGGER_NO_NAG=1
|
||||
|
||||
# Load variables from .env
|
||||
dotenv_if_exists
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# We switched to Dagger. Running the emulator tests in Dagger does not really work
|
||||
# We will use an external service for device testing.
|
||||
# TODO: Switch to device testing. First choose a service. Maybe codemagic.io
|
||||
name: Android Emulator Tests (Disabled)
|
||||
|
||||
on:
|
||||
|
||||
+17
@@ -10,6 +10,23 @@ type Ci struct{}
|
||||
|
||||
// Base container with all dependencies for Flutter and Linux builds
|
||||
func (m *Ci) Base(source *dagger.Directory) *dagger.Container {
|
||||
// Surgical inclusion: only take what is strictly needed for the build/test.
|
||||
// This improves caching by ignoring transient or irrelevant files.
|
||||
source = source.Filter(dagger.DirectoryFilterOpts{
|
||||
Include: []string{
|
||||
"lib/",
|
||||
"test/",
|
||||
"assets/",
|
||||
"scripts/",
|
||||
"pubspec.yaml",
|
||||
"analysis_options.yaml",
|
||||
"linux/",
|
||||
"android/",
|
||||
"integration_test/",
|
||||
"drift_schemas/",
|
||||
},
|
||||
})
|
||||
|
||||
return dag.Container().
|
||||
From("ghcr.io/cirruslabs/flutter:3.41.6").
|
||||
WithExec([]string{"apt-get", "update"}).
|
||||
|
||||
Reference in New Issue
Block a user