diff --git a/.github/workflows/ci-lint-check.yaml b/.github/workflows/ci-lint-check.yaml new file mode 100644 index 0000000..c51998c --- /dev/null +++ b/.github/workflows/ci-lint-check.yaml @@ -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 diff --git a/.github/workflows/ci-prettier-check.yaml b/.github/workflows/ci-prettier-check.yaml new file mode 100644 index 0000000..3e3a58d --- /dev/null +++ b/.github/workflows/ci-prettier-check.yaml @@ -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}" diff --git a/.github/workflows/ci-run-tests-type-check.yaml b/.github/workflows/ci-run-tests-type-check.yaml new file mode 100644 index 0000000..43e62f2 --- /dev/null +++ b/.github/workflows/ci-run-tests-type-check.yaml @@ -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 diff --git a/.github/workflows/ci-run-tests.yaml b/.github/workflows/ci-run-tests.yaml new file mode 100644 index 0000000..420a902 --- /dev/null +++ b/.github/workflows/ci-run-tests.yaml @@ -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 diff --git a/.github/workflows/ci-ts-build-check.yaml b/.github/workflows/ci-ts-build-check.yaml new file mode 100644 index 0000000..76da727 --- /dev/null +++ b/.github/workflows/ci-ts-build-check.yaml @@ -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 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index f7911c8..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,68 +0,0 @@ -name: CI - -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 - - 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}" - - ts_build_test: - 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 - - 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 library code - run: | - pnpm test - - run_type_check_on_tests: - 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 - run: | - pnpm run test-typings-check diff --git a/README.md b/README.md index d8bdb22..c91d14a 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@ npm published version - + Tests status - + Build status semantic-release