-
Notifications
You must be signed in to change notification settings - Fork 156
49 lines (46 loc) · 1.29 KB
/
check-packages.yml
File metadata and controls
49 lines (46 loc) · 1.29 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
name: Package Code Quality
on:
pull_request:
branches: [canary]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
setup-node:
name: Setup Dependencies
uses: ./.github/workflows/node-setup.yml
strategy:
matrix:
node-version: [22]
with:
node-version: ${{ matrix.node-version }}
check_lint:
name: Validate package linting
runs-on: ubuntu-latest
needs: [setup-node]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: ./.github/actions/cache-restore
id: cache-node-modules
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- name: Check Linting
run: npm run lint
check_format:
name: Validate package formatting
runs-on: ubuntu-latest
needs: [setup-node]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: ./.github/actions/cache-restore
id: cache-node-modules
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- name: Check Formatting
run: npm run test:format