Skip to content

Setup Mock Server with Prism #296

Setup Mock Server with Prism

Setup Mock Server with Prism #296

Workflow file for this run

name: Automated code review
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run:
name: Run Danger
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 100
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0.6"
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18.15.0"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Cache yarn packages
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Cache node_modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-nodemodules-
- name: Install yarn packages
run: yarn
if: |
steps.yarn-cache.outputs.cache-hit != 'true' ||
steps.node-modules-cache.outputs.cache-hit != 'true'
- name: Run Danger
run: bundle exec danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}