forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (23 loc) · 905 Bytes
/
unused-styles.yml
File metadata and controls
29 lines (23 loc) · 905 Bytes
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
name: Check unused styles
on:
workflow_call:
pull_request:
types: [opened, synchronize]
branches-ignore: [staging, production]
paths: ['src/**', '.github/workflows/unused-styles.yml', 'scripts/findUnusedStyles.ts']
concurrency:
group: ${{ github.ref == 'refs/heads/main' && format('{0}-{1}', github.ref, github.sha) || github.ref }}-unused-styles
cancel-in-progress: true
jobs:
check-unused-styles:
name: Check for unused styles
if: ${{ github.event.head_commit.author.name != 'OSBotify' || github.event_name == 'workflow_call' }}
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout
# v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Setup Node
uses: ./.github/actions/composite/setupNode
- name: Run unused style searcher
run: npx ts-node scripts/findUnusedStyles.ts