feat: git diff #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v2 | |
- 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 }} |