-
Notifications
You must be signed in to change notification settings - Fork 95
47 lines (38 loc) · 1.06 KB
/
Copy pathcheck-code-style.yml
File metadata and controls
47 lines (38 loc) · 1.06 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
name: Check Code Style
on:
push:
pull_request:
jobs:
default:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "yarn"
- name: Restore
uses: actions/cache@v4
with:
path: |
node_modules
*/*/node_modules
key: 2026-06-18-node22-${{ runner.os }}-${{ hashFiles('**/yarn.lock')}}
- name: Install Linux Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev libusb-1.0-0-dev
- name: Bootstrap
run: |
yarn
- name: Changed Files
id: changed-files
uses: tj-actions/changed-files@v46
with:
files: "packages/**/*.{js,cjs,mjs,jsx,ts,tsx,css,scss}"
- name: Prettier Check
if: steps.changed-files.outputs.any_changed == 'true'
run: |
yarn prettier --check ${{ steps.changed-files.outputs.all_changed_files }}