-
Notifications
You must be signed in to change notification settings - Fork 2.9k
45 lines (42 loc) · 1.45 KB
/
reactCompiler.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
44
45
name: 🔮 React Compiler
on:
pull_request:
paths:
- ".github/workflows/reactCompiler.yml"
- "src/**"
- "package.json"
jobs:
check:
name: 🧬 Conformity
runs-on: ubuntu-latest
steps:
- name: Checkout to target branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
- name: Setup Node
uses: ./.github/actions/composite/setupNode
- name: Get list of compiled files (main)
id: old-list
run: |
RAW_OUTPUT=$(npx react-compiler-healthcheck --json 2>/dev/null)
echo "Raw output: $RAW_OUTPUT"
OLD_LIST=$(echo "$RAW_OUTPUT" | jq -c .)
echo "OLD_LIST=$OLD_LIST" >> "$GITHUB_OUTPUT"
- name: Checkout to current branch
uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/composite/setupNode
- name: Get list of compiled files (PR)
id: new-list
run: |
RAW_OUTPUT=$(npx react-compiler-healthcheck --json 2>/dev/null)
echo "Raw output: $RAW_OUTPUT"
NEW_LIST=$(echo "$RAW_OUTPUT" | jq -c .)
echo "NEW_LIST=$NEW_LIST" >> "$GITHUB_OUTPUT"
- name: Check for react compiler changes
id: checkReactCompiler
uses: ./.github/actions/javascript/checkReactCompiler
with:
NEW_LIST: ${{ steps.new-list.outputs.NEW_LIST }}
OLD_LIST: ${{ steps.old-list.outputs.OLD_LIST }}