Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion .github/workflows/actions/build-packages/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build packages
description: Common setup steps used by our workflows
description: Build all koobiq packages
runs:
using: composite
steps:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Setup Node
description: Setup Node.js environment and install dependencies
runs:
using: composite
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'yarn'
cache-dependency-path: yarn.lock
Comment thread
artembelik marked this conversation as resolved.
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
shell: bash
run: yarn install --immutable
17 changes: 0 additions & 17 deletions .github/workflows/actions/setup-yarn/action.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: API

on:
push:
branches:
- main
pull_request:

jobs:
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/setup-node
- uses: ./.github/workflows/actions/build-packages
- run: yarn run check-api
58 changes: 0 additions & 58 deletions .github/workflows/ci.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Commitlint

on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/setup-node
- run: echo "${{ github.event.pull_request.title }}" | yarn commitlint --verbose
4 changes: 2 additions & 2 deletions .github/workflows/docs-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Yarn
uses: ./.github/workflows/actions/setup-yarn
- name: Setup Node
uses: ./.github/workflows/actions/setup-node

- name: Build packages
uses: ./.github/workflows/actions/build-packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Yarn
uses: ./.github/workflows/actions/setup-yarn
- name: Setup Node
uses: ./.github/workflows/actions/setup-node

- name: Build packages
uses: ./.github/workflows/actions/build-packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-update-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup yarn
uses: ./.github/workflows/actions/setup-yarn
- name: Setup Node
uses: ./.github/workflows/actions/setup-node

- name: Setup test environment
run: yarn run e2e:setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup yarn
uses: ./.github/workflows/actions/setup-yarn
- name: Setup Node
uses: ./.github/workflows/actions/setup-node

- name: Setup test environment
run: yarn run e2e:setup
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: License validation

on:
push:
branches:
- main
pull_request:

jobs:
license_validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/setup-node
- run: yarn run validate:license
19 changes: 19 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Linters

on:
push:
branches:
- main
pull_request:

jobs:
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/setup-node
- run: |
yarn run cspell --no-progress
yarn run prettier
yarn run stylelint --max-warnings=0
yarn run eslint --max-warnings=0
4 changes: 2 additions & 2 deletions .github/workflows/pr-docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0

- name: Setup Yarn
uses: ./.github/workflows/actions/setup-yarn
- name: Setup Node
uses: ./.github/workflows/actions/setup-node

- name: Build Packages
uses: ./.github/workflows/actions/build-packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Yarn
uses: ./.github/workflows/actions/setup-yarn
- name: Setup Node
uses: ./.github/workflows/actions/setup-node

- name: Build packages
uses: ./.github/workflows/actions/build-packages
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/units.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Unit tests

on:
push:
branches:
- main
pull_request:

jobs:
unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/setup-node
- run: |
yarn run unit:cdk
yarn run unit:components
yarn run unit:angular-moment-adapter
yarn run unit:angular-luxon-adapter
yarn run unit:schematics
yarn run unit:koobiq-docs
yarn run unit:api-gen
yarn run unit:components-experimental
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
"docs:build": "ng build koobiq-docs --configuration production",
"docs:update-versions": "ts-node --project tools/update-doc-versions/tsconfig.json tools/update-doc-versions/update-doc-versions.ts",
"docs:api-gen": "rimraf dist/api-gen && rollup -c tools/api-gen/rollup.config.js && node dist/api-gen/generate-api-docs.mjs",
"validate:license": "ts-node --project ./tools/validate-licenses/tsconfig.json ./tools/validate-licenses/validate-licenses.ts",
"-----RELEASE-----": "----------------------------------------------------------------------------------------",
"release:extract-changelog": "ts-node --project tools/extract-release-notes/tsconfig.json tools/extract-release-notes",
"release:stage": "ts-node --project packages/cli/tsconfig.lib.json packages/cli/src/cli stage",
Expand Down Expand Up @@ -288,10 +289,10 @@
"-----E2E_TESTS-----": "--------------------------------------------------------------------------------------",
"e2e:setup": "playwright install chromium --with-deps",
"e2e:components": "playwright test ./packages/components-dev/e2e/components",
"-----CI-----": "---------------------------------------------------------------------------------------------",
"-----API-----": "--------------------------------------------------------------------------------------------",
"approve-api": "ts-node --project tools/api-extractor/tsconfig.json tools/api-extractor/api-extractor.ts",
"check-api": "yarn run approve-api onlyCheck",
"validate:license": "ts-node --project ./tools/validate-licenses/tsconfig.json ./tools/validate-licenses/validate-licenses.ts",
"-----LINTERS-----": "----------------------------------------------------------------------------------------",
"eslint": "eslint . --ext='.js,.ts,.html'",
"eslint:fix": "yarn run eslint --fix",
"stylelint": "stylelint '**/*.{css,scss}'",
Expand Down
Loading