forked from eclipse-xpanse/xpanse-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.06 KB
/
xpanse.yml
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
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Huawei Inc.
#
name: xpanse-ui
# Run this workflow every time a new commit push to the repository
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install all required NPM packages
working-directory: ./
run: npm install
- name: Run EsLint
working-directory: ./
run: npx eslint . --ext .js,.jsx,.ts,.tsx --config package.json --max-warnings=0
- name: Check Prettier Format
working-directory: ./
run: npx prettier --config .prettierrc --check .
- name: Run knip
working-directory: ./
run: npx knip
- name: Run unit tests
working-directory: ./
run: npm run test
- name: Run TSC
working-directory: ./
run: tsc