Skip to content

Commit

Permalink
ci: run dart tests (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
maratsh authored Feb 7, 2025
1 parent fca39bd commit c7d0154
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "3.27.3"
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ pubspec.lock
# env files
.env*
!.env.example

# FVM Version Cache
.fvm/
3 changes: 3 additions & 0 deletions packages/dart/auth_provider/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ pubspec.lock
# env files
.env*
!.env.example

# FVM Version Cache
.fvm/
23 changes: 21 additions & 2 deletions packages/dart/auth_provider/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,32 @@
"projectType": "library",
"private": false,
"targets": {
"build": {
"prepare": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart pub get && dart analyze --no-fatal-warnings"
"command": "dart pub get"
}
},
"lint": {
"dependsOn": ["prepare"],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart analyze --no-fatal-warnings"
}
},
"test": {
"dependsOn": ["prepare"],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart test"
}
},
"build": {
"dependsOn": ["lint", "test"]
},
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release",
"options": {
Expand Down
24 changes: 22 additions & 2 deletions packages/dart/common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,32 @@
"projectType": "library",
"private": false,
"targets": {
"build": {
"prepare": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart pub get && dart analyze --no-fatal-warnings"
"command": "dart pub get"
}
},
"lint": {
"dependsOn": ["prepare"],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart analyze --no-fatal-warnings"
}
},
"test": {
"dependsOn": ["prepare"],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart test"
}
},
"build": {
"dependsOn": ["lint", "test"]
},
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release",
"options": {
Expand All @@ -36,5 +55,6 @@
}
}
},

"tags": ["lang:dart", "kind:package"]
}
24 changes: 22 additions & 2 deletions packages/dart/consumer_auth_provider/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,32 @@
"projectType": "library",
"private": false,
"targets": {
"build": {
"prepare": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart pub get && dart analyze --no-fatal-warnings"
"command": "dart pub get"
}
},
"lint": {
"dependsOn": ["prepare"],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart analyze --no-fatal-warnings"
}
},
"test": {
"dependsOn": ["prepare"],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart test"
}
},
"build": {
"dependsOn": ["lint", "test"]
},
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release",
"options": {
Expand All @@ -36,5 +55,6 @@
}
}
},

"tags": ["lang:dart", "kind:package"]
}
23 changes: 21 additions & 2 deletions packages/dart/cryptography/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,32 @@
"projectType": "library",
"private": false,
"targets": {
"build": {
"prepare": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart pub get && dart analyze --no-fatal-warnings"
"command": "dart pub get"
}
},
"lint": {
"dependsOn": ["prepare"],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart analyze --no-fatal-warnings"
}
},
"test": {
"dependsOn": ["prepare"],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "dart test"
}
},
"build": {
"dependsOn": ["lint", "test"]
},
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release",
"options": {
Expand Down

0 comments on commit c7d0154

Please sign in to comment.