-
Notifications
You must be signed in to change notification settings - Fork 4
80 lines (66 loc) · 2.17 KB
/
ui-beta.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: centreon-ui-beta
on:
workflow_dispatch:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths:
- "centreon/packages/ui/**"
- '.github/workflows/ui-beta.yml'
env:
directory: "centreon/packages/ui"
package: "ui"
base_branch: develop
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: ./.github/actions/frontend-lint
with:
frontend_directory: ${{ env.directory }}
module_name: centreon-ui
dependencies_lock_file: centreon/pnpm-lock.yaml
pat: ${{ secrets.CENTREON_TECHNIQUE_PAT }}
lint_path: ./src/
cypress-component-testing:
uses: ./.github/workflows/cypress-component-parallelization.yml
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.LIGHTHOUSE_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LIGHTHOUSE_SECRET }}
with:
name: component
module_name: centreon/packages/ui
specs_path: src/**
dependencies_lock_file: centreon/pnpm-lock.yaml
unit-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
version: 8
- name: Install Centreon dependencies
run: pnpm install --frozen-lockfile
working-directory: centreon
- name: Unit test
run: pnpm t
working-directory: ${{ env.directory }}
publish-new-npm-beta-version:
runs-on: ubuntu-22.04
needs: [lint, unit-test, cypress-component-testing]
if: github.event.pull_request.base.repo.name == 'centreon'
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
ref: ${{ github.head_ref }}
- uses: ./.github/actions/npm-publish-package-beta
with:
directory: ${{ env.directory }}
pat: ${{ secrets.CENTREON_TECHNIQUE_PAT }}
npm_token: ${{ secrets.NPM_TOKEN }}
release_branch: ${{ env.base_branch }}
package: ${{ env.package }}