ci: Use the ci template

This commit is contained in:
Nicolas Werner 2023-05-08 14:47:10 +02:00
parent b95edec462
commit a1e8971c39
No known key found for this signature in database
1 changed files with 6 additions and 16 deletions

View File

@ -1,28 +1,18 @@
stages:
- coverage
- publish
include:
project: "famedly/company/frontend/ci-templates"
file: "all.yml"
test:
tags:
- linux
stage: coverage
stage: test
image: dart
script:
- dart pub get
- dart pub run test
code_analyze:
tags:
- docker
stage: coverage
image: cirrusci/flutter
dependencies: []
script:
- flutter format lib/ test/ --set-exit-if-changed
- flutter analyze
dry-run:
stage: publish
stage: deploy
image: dart
script:
- rm -rf ./docs
@ -30,7 +20,7 @@ dry-run:
- dart pub publish --dry-run
pub-dev:
stage: publish
stage: deploy
image: dart
dependencies: [dry-run]
script: