-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (43 loc) · 1.19 KB
/
atomic-bisect.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Atomic Bisecter
on:
workflow_dispatch:
inputs:
good:
description: 'The commit that is known to be good'
required: true
bad:
description: 'The commit that is known to be bad'
required: true
default: 'master'
jobs:
bisect:
runs-on: ubuntu-latest
steps:
- name: Checkout ui-kit
uses: actions/checkout@v4
with:
repository: coveo/ui-kit
path: ui-kit
fetch-depth: 0
- name: Checkout bisecter
uses: actions/checkout@v4
with:
path: bisecter
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Init Bisecter
run: npm ci
working-directory: bisecter
- name: Bisect
run: |
git bisect start ${{ github.event.inputs.bad }} ${{ github.event.inputs.good }}
git bisect run node ../bisecter/packages/atomic-bisecter/index.js
working-directory: ui-kit
- name: Summary
run: |
echo "Bisect complete 🐛" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
git bisect view >> $GITHUB_STEP_SUMMARY
working-directory: ui-kit