2023-02-09 18:08:48 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: '16'
|
|
|
|
|
2023-04-25 17:21:14 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
|
|
|
|
2023-02-09 18:08:48 +01:00
|
|
|
- name: Run fitness functions
|
|
|
|
env:
|
|
|
|
BASE_REF: ${{ github.event.pull_request.base.ref }}
|
|
|
|
run: |
|
2023-04-25 17:21:14 +02:00
|
|
|
git fetch origin $BASE_REF
|
|
|
|
git diff origin/$BASE_REF HEAD -- . > diff
|
|
|
|
npm run fitness-functions -- "ci" "./diff"
|