-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (46 loc) · 1.44 KB
/
library.yml
File metadata and controls
55 lines (46 loc) · 1.44 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
50
51
52
53
54
55
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
name: Library Workflow
on:
workflow_call
permissions: {}
jobs:
run-library-pipeline:
permissions:
contents: read
runs-on: 'ubuntu-latest'
steps:
- name: Check out repository code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
token: ${{ secrets.SYS_ORCH_GITHUB }}
persist-credentials: false
- name: Cache npm dependencies
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 18.17.1
cache: "npm"
- name: Install dependencies
run: |
node -v
npm -v
npm ci
- name: Code style check
run: npm run library:lint
- name: Run api:generate script
run: npm run api:generate
- name: Check for Changes in library/apis
shell: bash
run: |
CHANGED_FILES=$(git diff --name-only HEAD library/apis/)
if [[ -n "$CHANGED_FILES" ]]; then
echo "::error::API file changes detected in library/apis: $CHANGED_FILES"
exit 1 # Fail the step
else
echo "No changes detected in the library/apis folder."
fi
continue-on-error: true
- name: Cypress Component Tests
run: npm run library:cy:component