Skip to content

Separate the current combined GH workflow into individual ones per job #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/ci-lint-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI - lint check

on:
pull_request:
branches: [master]

jobs:
lint_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: ./.github/actions/ci-common-setup

- name: Lint check
run: pnpm exec eslint --cache
18 changes: 18 additions & 0 deletions .github/workflows/ci-prettier-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI - prettier check

on:
pull_request:
branches: [master]

jobs:
prettier_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: ./.github/actions/ci-common-setup

- name: Prettier check
run: pnpm exec prettier --check "./{src,spec}/**/*.{ts,tsx,js,mjs,jsx}"
18 changes: 18 additions & 0 deletions .github/workflows/ci-run-tests-type-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI - run tests type check

on:
pull_request:
branches: [master]

jobs:
run_tests_type_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: ./.github/actions/ci-common-setup-locally-packaged

- name: Type-check tests code against packaged build
run: pnpm run test-typings-check
18 changes: 18 additions & 0 deletions .github/workflows/ci-run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI - run tests

on:
pull_request:
branches: [master]

jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: ./.github/actions/ci-common-setup-locally-packaged

- name: Run tests against packaged build
run: pnpm test
18 changes: 18 additions & 0 deletions .github/workflows/ci-ts-build-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI - ts build check

on:
pull_request:
branches: [master]

jobs:
ts_build_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: ./.github/actions/ci-common-setup

- name: TypeScript test build
run: pnpm run build-check
68 changes: 0 additions & 68 deletions .github/workflows/ci.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<img alt="npm published version" src="https://img.shields.io/npm/v/react-async-iterators.svg?logo=npm" />
</a>
<a href="https://github.com/shtaif/react-async-iterators/actions/workflows/ci-tests.yaml">
<img alt="" src="https://github.com/shtaif/react-async-iterators/actions/workflows/ci-tests.yaml/badge.svg" />
<img alt="Tests status" src="https://github.com/shtaif/react-async-iterators/actions/workflows/ci-run-tests.yaml/badge.svg" />
</a>
<a href="https://github.com/shtaif/react-async-iterators/actions/workflows/ci-build-check.yaml">
<img alt="" src="https://github.com/shtaif/react-async-iterators/actions/workflows/ci-build-check.yaml/badge.svg" />
<img alt="Build status" src="https://github.com/shtaif/react-async-iterators/actions/workflows/ci-ts-build-check.yaml/badge.svg" />
</a>
<a href="https://semver.org">
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" />
Expand Down