mirror of
https://github.com/SigNoz/signoz.git
synced 2026-02-03 08:33:26 +00:00
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
* feature: init open api ts code gen * chore: update custom instance to a separate axios instance * chore: update code owners * chore: set up node version in CI * fix: node version * chore: update jsci.yaml * chore: update goci.yaml * chore: rename instance * chore: resolve comments
64 lines
2.8 KiB
YAML
64 lines
2.8 KiB
YAML
name: jsci
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
pull_request_target:
|
|
types:
|
|
- labeled
|
|
|
|
jobs:
|
|
tsc:
|
|
if: |
|
|
(github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||
|
|
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
- name: setup node
|
|
uses: actions/setup-node@v5
|
|
with:
|
|
node-version: "22"
|
|
- name: install
|
|
run: cd frontend && yarn install
|
|
- name: tsc
|
|
run: cd frontend && yarn tsc
|
|
tsc2:
|
|
if: |
|
|
(github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||
|
|
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
|
|
uses: signoz/primus.workflows/.github/workflows/js-tsc.yaml@main
|
|
secrets: inherit
|
|
with:
|
|
PRIMUS_REF: main
|
|
JS_SRC: frontend
|
|
test:
|
|
if: |
|
|
(github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||
|
|
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
|
|
uses: signoz/primus.workflows/.github/workflows/js-test.yaml@main
|
|
secrets: inherit
|
|
with:
|
|
PRIMUS_REF: main
|
|
JS_SRC: frontend
|
|
fmt:
|
|
if: |
|
|
(github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||
|
|
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
|
|
uses: signoz/primus.workflows/.github/workflows/js-fmt.yaml@main
|
|
secrets: inherit
|
|
with:
|
|
PRIMUS_REF: main
|
|
JS_SRC: frontend
|
|
lint:
|
|
if: |
|
|
(github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||
|
|
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
|
|
uses: signoz/primus.workflows/.github/workflows/js-lint.yaml@main
|
|
secrets: inherit
|
|
with:
|
|
PRIMUS_REF: main
|
|
JS_SRC: frontend
|