Skip to content

Commit

Permalink
Fix danger execution in the sample project folder
Browse files Browse the repository at this point in the history
  • Loading branch information
luongvo committed Aug 24, 2023
1 parent 2ac908e commit f4d11b9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 100
ref: ${{ github.head_ref }}
submodules: "recursive"

Expand Down Expand Up @@ -64,11 +65,23 @@ jobs:
ruby-version: '2.7'
bundler-cache: true

- name: Cache gems
uses: actions/cache@v1
with:
path: sample/vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Run Danger to wrap up the review
uses: MeilCli/danger-action@v5
with:
plugins_file: 'Gemfile'
install_path: 'sample/vendor/bundle'
danger_file: 'sample/Dangerfile'
danger_id: 'danger-pr'
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
working-directory: ./sample
run: bundle exec danger

# Submit the sample project changes

Expand Down

0 comments on commit f4d11b9

Please sign in to comment.