1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/.github/workflows/fitness-functions.yml
Pedro Figueiredo 1d80029691
fix ff diff generation (#18824)
* fix ff diff generation

* wip

* Update .github/workflows/fitness-functions.yml

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update .github/workflows/fitness-functions.yml

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-05-03 16:04:53 +04:00

34 lines
967 B
YAML

name: Fitness Functions CI
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: yarn
- name: Run fitness functions
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
run: |
# The following command generates a diff of changes between the common
# ancestor of $BASE_REF and HEAD, and the current commit (HEAD), for
# files in the current directory and its subdirectories. The output is
# then saved to a file called "diff".
git diff "$(git merge-base "origin/$BASE_REF" HEAD)" HEAD -- . > ./diff
npm run fitness-functions -- "ci" "./diff"