Skip to content

Commit 95d3dd7

Browse files
authored
Merge pull request #1153 from appwrite/chore-dart-test
chore(dart): add GitHub workflow to analyze and test
2 parents a784375 + 7625696 commit 95d3dd7

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/SDK/Language/Dart.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,11 @@ public function getFiles(): array
492492
'destination' => '.github/workflows/format.yml',
493493
'template' => 'dart/.github/workflows/format.yml.twig',
494494
],
495+
[
496+
'scope' => 'default',
497+
'destination' => '.github/workflows/test.yml',
498+
'template' => 'dart/.github/workflows/test.yml',
499+
],
495500
[
496501
'scope' => 'default',
497502
'destination' => 'lib/src/input_file.dart',
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Analyze and test
2+
3+
on: pull_request
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: dart-lang/setup-dart@v1
11+
- name: Install dependencies
12+
run: dart pub get
13+
- name: Analyze
14+
run: dart analyze --no-fatal-warnings
15+
- name: Test
16+
run: dart test

0 commit comments

Comments
 (0)