-
Notifications
You must be signed in to change notification settings - Fork 7
67 lines (49 loc) · 1.84 KB
/
verify_compatibility.yaml
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
63
64
65
66
67
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Danger compatibility
on: pull_request
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Fetch master
run: git fetch origin master:master
- uses: actions/setup-node@v1
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
- name: Install Danger-js
run: npm install -g danger
- name: Activate command
run: dart pub global activate --source path packages/danger_dart/
- name: Install danger_core dependencies
run: dart pub get
working-directory: packages/danger_core/
- name: Install danger_dart dependencies
run: dart pub get
working-directory: packages/danger_dart/
- name: Install plugin dependencies
run: dart pub get
working-directory: example/with_plugin/danger_plugin_example/
- name: Install plugin example dependencies
run: dart pub get
working-directory: example/with_plugin/
- name: Run danger local (with plugin)
run: danger_dart local
working-directory: example/with_plugin/
- name: Install app dependencies (Dart 2)
run: dart pub get
working-directory: example/dart2/
- name: Run danger local (Dart 2)
run: danger_dart local
working-directory: example/dart2/
- name: Install app dependencies (Dart 3)
run: dart pub get
working-directory: example/dart3/
- name: Run danger local (Dart 3)
run: danger_dart local
working-directory: example/dart3/