-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (35 loc) · 954 Bytes
/
check-cli.yml
File metadata and controls
45 lines (35 loc) · 954 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Run Checks and Tests for the CLI
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths:
- "gallery/**"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Run checks (common)
working-directory: ./common
run: yarn check && yarn build
- name: Run checks (gallery)
working-directory: ./gallery
run: yarn check
- name: Run tests
working-directory: ./gallery
run: yarn test