Skip to content

Commit

Permalink
ci: simplify required checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc committed Jul 2, 2024
1 parent f6f9685 commit 144a951
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 24 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ESLint

on:
merge_group:
pull_request:
branches:
- dev
- master

concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- name: Prepare environment
uses: ./.github/actions/prepare-environment

# INFO: Для корректной работы ESLint не нужно build typings, etc.
# INFO: Только установить пакеты и сделать symlink
- name: Lerna bootstrap
run: npx lerna bootstrap --ignore-scripts

- name: Lint
run: npm run lint
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Required primary checks
name: Unit tests

on:
merge_group:
pull_request:
branches:
- dev
Expand All @@ -13,35 +12,16 @@ concurrency:
cancel-in-progress: true

env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
LERNA_IGNORE_LIST: "@salutejs/plasma-{cy-utils,sb-utils}"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
show-progress: false

- name: Prepare environment
uses: ./.github/actions/prepare-environment

- name: Lerna bootstrap
run: npx lerna bootstrap

- name: Lint
run: npm run lint

tests:
name: Unit Tests
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- name: Prepare environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typescript-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Typescript coverage

on:
merge_group:
pull_request:
branches:
- master
Expand All @@ -21,6 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- name: Prepare environment
Expand Down

0 comments on commit 144a951

Please sign in to comment.