-
Notifications
You must be signed in to change notification settings - Fork 6
77 lines (69 loc) · 2.22 KB
/
Copy pathci.yml
File metadata and controls
77 lines (69 loc) · 2.22 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# PR quality pipeline.
#
# Keep these checks direct in this repository so PRs do not depend on an extra
# reusable-workflow planning job before actionable Audit/Lint/Test checks exist.
name: CI
on:
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: write
pull-requests: write
issues: write
jobs:
homeboy:
name: homeboy / ${{ matrix.title }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- command: review audit
title: Audit
section_key: audit
section_title: Audit
- command: review lint
title: Lint
section_key: lint
section_title: Lint
- command: review test
title: Test
section_key: test
section_title: Test
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- name: Check out Homeboy Action
uses: actions/checkout@v6
with:
repository: Extra-Chill/homeboy-action
ref: v2
path: .homeboy-action
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
continue-on-error: true
with:
app-id: ${{ secrets.HOMEBOY_APP_ID }}
private-key: ${{ secrets.HOMEBOY_APP_PRIVATE_KEY }}
- uses: ./.homeboy-action
with:
source: .
component: homeboy
commands: ${{ matrix.command }}
expected-commands: review audit,review lint,review test
differential-gating: true
# Autofix is explicitly disabled on PRs: an on-failure autofix push
# lands a bot commit mid-review and supersedes in-flight CI runs,
# which reads as a spurious failure (see #3819). Require manual fixes.
autofix: 'false'
app-token: ${{ steps.app-token.outputs.token || github.token }}
comment-section-key: ${{ matrix.section_key }}
comment-section-title: ${{ matrix.section_title }}