-
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (47 loc) · 1.75 KB
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# To test this workflow, you can use the following command:
# act -j build -s GITHUB_TOKEN="$(gh auth token)" --container-architecture linux/amd64
name: Dart
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter doctor -v
- name: Install melos
run: dart pub global activate melos
- name: Bootstrap melos
run: melos bootstrap
# Uncomment this step to verify the use of 'dart format' on each commit.
# - name: Verify formatting
# run: dart format --output=none --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: dart analyze
# Needed for the integration tests
- name: Install http-server
run: npm install http-server -g
# Needed for the integration tests
- name: Install pmtiles
# Running from HEAD as it has a fix we need
# https://github.com/jaxxstorm/action-install-gh-release/commit/410ab39896b55ae0084c2b3921e25665356169b6
# switch to a tagged version when it's released
uses: jaxxstorm/action-install-gh-release@HEAD
with:
repo: protomaps/go-pmtiles
tag: v1.14.0 # Pinned version (to make the tests less flakey)
- run: pmtiles version
- name: Run tests (unit)
run: melos run test:dart --no-select
- name: Run tests (integration)
run: melos run test:flutter --no-select
- name: Run tests (chrome)
run: melos run test:chrome --no-select