feat: git diff #64
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 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/ |