...
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/
|
||||||
.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/
|
||||||
build
|
.dart_tool/
|
||||||
android/.gradle/
|
.fvm/
|
||||||
.gradle/
|
.pub-cache/
|
||||||
.gradle
|
node_modules/
|
||||||
Android/
|
|
||||||
Android
|
|
||||||
.android/
|
|
||||||
.android
|
|
||||||
ios/Pods/
|
ios/Pods/
|
||||||
macos/Pods/
|
macos/Pods/
|
||||||
linux/flutter/ephemeral/
|
linux/flutter/ephemeral/
|
||||||
website/public/
|
website/public/
|
||||||
website/resources/
|
website/resources/
|
||||||
*.log
|
|
||||||
run*.log
|
# Sensitive files
|
||||||
test_results.txt
|
.env*
|
||||||
test_output.txt
|
.ssh/
|
||||||
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
|
|
||||||
|
|||||||
@@ -14,5 +14,7 @@ PATH_add .fvm/flutter_sdk/bin
|
|||||||
|
|
||||||
PATH_add "$HOME/Android/Sdk/platform-tools"
|
PATH_add "$HOME/Android/Sdk/platform-tools"
|
||||||
|
|
||||||
|
export DAGGER_NO_NAG=1
|
||||||
|
|
||||||
# Load variables from .env
|
# Load variables from .env
|
||||||
dotenv_if_exists
|
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)
|
name: Android Emulator Tests (Disabled)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
+17
@@ -10,6 +10,23 @@ type Ci struct{}
|
|||||||
|
|
||||||
// Base container with all dependencies for Flutter and Linux builds
|
// Base container with all dependencies for Flutter and Linux builds
|
||||||
func (m *Ci) Base(source *dagger.Directory) *dagger.Container {
|
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().
|
return dag.Container().
|
||||||
From("ghcr.io/cirruslabs/flutter:3.41.6").
|
From("ghcr.io/cirruslabs/flutter:3.41.6").
|
||||||
WithExec([]string{"apt-get", "update"}).
|
WithExec([]string{"apt-get", "update"}).
|
||||||
|
|||||||
Reference in New Issue
Block a user