-
Notifications
You must be signed in to change notification settings - Fork 7
69 lines (51 loc) · 2.13 KB
/
pr_flow.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
68
69
# 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 on PR
on: pull_request
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- 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: Test danger_core
run: dart test --reporter json > ../../danger_core_report.json
continue-on-error: true
working-directory: packages/danger_core/
- name: Install danger_dart dependencies
run: dart pub get
working-directory: packages/danger_dart/
- name: Test danger_dart
run: dart test --reporter json > ../../danger_dart_report.json
continue-on-error: true
working-directory: packages/danger_dart/
- name: Install danger_plugin_dart_test dependencies
run: dart pub get
working-directory: packages/danger_plugin_dart_test/
- name: Test danger_plugin_dart_test
run: dart test --reporter json > ../../danger_plugin_dart_test_report.json
continue-on-error: true
working-directory: packages/danger_plugin_dart_test/
- name: Install danger_plugin_golden_reporter dependencies
run: dart pub get
working-directory: packages/danger_plugin_golden_reporter/
- name: Test danger_plugin_golden_reporter
run: dart test --reporter json > ../../danger_plugin_golden_reporter.json
continue-on-error: true
working-directory: packages/danger_plugin_golden_reporter/
- name: Install app dependencies
run: dart pub get
- name: Run danger ci
run: danger_dart ci --failOnErrors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}