sdadfadas

Форк
0
/
superset-frontend.yml 
85 строк · 2.7 Кб
1
name: Frontend
2

3
on:
4
  push:
5
    branches:
6
      - "master"
7
      - "[0-9].[0-9]*"
8
  pull_request:
9
    types: [synchronize, opened, reopened, ready_for_review]
10

11
# cancel previous workflow jobs for PRs
12
concurrency:
13
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
14
  cancel-in-progress: true
15

16
jobs:
17
  frontend-build:
18
    runs-on: ubuntu-22.04
19
    steps:
20
      - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
21
        uses: actions/checkout@v4
22
        with:
23
          persist-credentials: false
24
          submodules: recursive
25
      - name: Check npm lock file version
26
        run: ./scripts/ci_check_npm_lock_version.sh ./superset-frontend/package-lock.json
27
      - name: Check for file changes
28
        id: check
29
        uses: ./.github/actions/change-detector/
30
        with:
31
          token: ${{ secrets.GITHUB_TOKEN }}
32
      - name: Setup Node.js
33
        if: steps.check.outputs.frontend
34
        uses: actions/setup-node@v4
35
        with:
36
          node-version: "18"
37
      - name: Install dependencies
38
        if: steps.check.outputs.frontend
39
        uses: ./.github/actions/cached-dependencies
40
        with:
41
          run: npm-install
42
      - name: eslint
43
        if: steps.check.outputs.frontend
44
        working-directory: ./superset-frontend
45
        run: |
46
          npm run eslint -- . --quiet
47
      - name: tsc
48
        if: steps.check.outputs.frontend
49
        working-directory: ./superset-frontend
50
        run: |
51
          npm run type
52
      - name: prettier
53
        if: steps.check.outputs.frontend
54
        working-directory: ./superset-frontend
55
        run: |
56
          npm run prettier-check
57
      - name: Build plugins packages
58
        if: steps.check.outputs.frontend
59
        working-directory: ./superset-frontend
60
        run: npm run plugins:build
61
      - name: Build plugins Storybook
62
        if: steps.check.outputs.frontend
63
        working-directory: ./superset-frontend
64
        run: npm run plugins:build-storybook
65
      - name: superset-ui/core coverage
66
        if: steps.check.outputs.frontend
67
        working-directory: ./superset-frontend
68
        run: |
69
          npm run core:cover
70
      - name: unit tests
71
        if: steps.check.outputs.frontend
72
        working-directory: ./superset-frontend
73
        run: |
74
          npm run test -- --coverage --silent
75
      # todo: remove this step when fix generator as a project in root jest.config.js
76
      - name: generator-superset unit tests
77
        if: steps.check.outputs.frontend
78
        working-directory: ./superset-frontend/packages/generator-superset
79
        run: npx jest
80
      - name: Upload code coverage
81
        uses: codecov/codecov-action@v4
82
        with:
83
          flags: javascript
84
          token: ${{ secrets.CODECOV_TOKEN }}
85
          verbose: true
86

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.