mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 07:56:56 +00:00
chore: build.yml file is updated for more strict frontend checks (#906)
chore: build.yml file is updated for more strict frontend checks
This commit is contained in:
parent
0efb901863
commit
d34e08fa3d
34
.github/workflows/build.yaml
vendored
34
.github/workflows/build.yaml
vendored
@ -2,11 +2,12 @@ name: build-pipeline
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
|
- develop
|
||||||
- main
|
- main
|
||||||
- v*
|
- v*
|
||||||
paths:
|
paths:
|
||||||
- 'pkg/**'
|
- "pkg/**"
|
||||||
- 'frontend/**'
|
- "frontend/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get_filters:
|
get_filters:
|
||||||
@ -17,17 +18,17 @@ jobs:
|
|||||||
query-service: ${{ steps.filter.outputs.query-service }}
|
query-service: ${{ steps.filter.outputs.query-service }}
|
||||||
flattener: ${{ steps.filter.outputs.flattener }}
|
flattener: ${{ steps.filter.outputs.flattener }}
|
||||||
steps:
|
steps:
|
||||||
# For pull requests it's not necessary to checkout the code
|
# For pull requests it's not necessary to checkout the code
|
||||||
- uses: dorny/paths-filter@v2
|
- uses: dorny/paths-filter@v2
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
frontend:
|
frontend:
|
||||||
- 'frontend/**'
|
- 'frontend/**'
|
||||||
query-service:
|
query-service:
|
||||||
- 'pkg/query-service/**'
|
- 'pkg/query-service/**'
|
||||||
flattener:
|
flattener:
|
||||||
- 'pkg/processors/flattener/**'
|
- 'pkg/processors/flattener/**'
|
||||||
|
|
||||||
build-frontend:
|
build-frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -39,12 +40,11 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd frontend && yarn install
|
run: cd frontend && yarn install
|
||||||
- name: Run Prettier
|
|
||||||
run: cd frontend && npm run prettify
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: cd frontend && npm run lint
|
run: cd frontend && npm run lint
|
||||||
continue-on-error: true
|
- name: TSC
|
||||||
|
run: yarn tsc
|
||||||
|
working-directory: ./frontend
|
||||||
- name: Build frontend docker image
|
- name: Build frontend docker image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user