-
Notifications
You must be signed in to change notification settings - Fork 67
49 lines (42 loc) · 1.4 KB
/
test.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
38
39
40
41
42
43
44
45
46
47
48
49
name: build_and_test
# Controls when the action will run.
on:
push:
branches:
- '**'
- '!main'
- '!develop'
pull_request:
branches:
- '**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-and-test:
# Need to run this job on "pull_request" event only from forks.
# Reason: Because no guarantee that it's run on "push" event in fork: such workflow maybe misconfigured or even disabled in forks.
# No need to run this job on "pull_request" from main UUI repo, because it's guaranteed it's already run on "push" event.
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'epam/UUI' || github.event_name == 'push'
runs-on: ubuntu-latest
container: node:18
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: |
**/yarn.lock
- name: build
run: |
yarn
yarn generate-components-api
yarn build
cd server && yarn
- name: test
run: yarn test-ci
- name: eslint
run: yarn eslint
- name: stylelint
run: yarn stylelint