From c1078369388782a368af5f58235cde06e9759d44 Mon Sep 17 00:00:00 2001 From: Erik Slovak Date: Thu, 5 Sep 2024 20:07:09 +0200 Subject: [PATCH 1/3] ci: rename workflows --- .github/workflows/pr.yml | 7 ++++--- .github/workflows/test.yml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 88d14a73..6238c3d5 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,6 +8,7 @@ on: - synchronize jobs: - main: - name: '/' - uses: technology-studio/github-workflows/.github/workflows/_pr.yml@main + semantic-title: + name: "Semantic title" + uses: technology-studio/github-workflows/.github/workflows/_semantic-title.yml@main + secrets: inherit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d56cf2c3..904c9948 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ on: - ready_for_review jobs: - test: - name: '/' - uses: technology-studio/github-workflows/.github/workflows/_test.yml@main + unit: + name: 'Unit test' + uses: technology-studio/github-workflows/.github/workflows/_unit-test.yml@main + secrets: inherit From 54b271f6798b67ac8363cfe9e7ade51358b53de1 Mon Sep 17 00:00:00 2001 From: Erik Slovak Date: Thu, 5 Sep 2024 21:27:05 +0200 Subject: [PATCH 2/3] ci: add code.yml workflow --- .github/workflows/code-quality.yml | 14 -------------- .github/workflows/code.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/code-quality.yml create mode 100644 .github/workflows/code.yml diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml deleted file mode 100644 index 3ba558a9..00000000 --- a/.github/workflows/code-quality.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: 'Code quality' - -on: - pull_request: - types: - - opened - - reopened - - synchronize - - ready_for_review - -jobs: - lint: - name: '/' - uses: technology-studio/github-workflows/.github/workflows/_code-quality.yml@main diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml new file mode 100644 index 00000000..1fe5c25c --- /dev/null +++ b/.github/workflows/code.yml @@ -0,0 +1,19 @@ +name: "Code" + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review + +jobs: + code-quality: + name: "Code quality" + uses: technology-studio/github-workflows/.github/workflows/_code-quality.yml@main + secrets: inherit + type-check: + name: "Type check" + uses: technology-studio/github-workflows/.github/workflows/_type-check.yml@main + secrets: inherit From 89290d1eec6176af9f966ac8ec343bb1efdd0e0d Mon Sep 17 00:00:00 2001 From: Erik Slovak Date: Thu, 5 Sep 2024 21:47:01 +0200 Subject: [PATCH 3/3] ci: add `type-check` script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f11bbdf..2ef8481f 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "sanity": "yarn lint:ci && yarn build && tsc --noEmit && yarn test --coverage && yarn compare-boilerplate-version && echo 'success'", "semantic-release": "semantic-release", "update-boilerplate-version": "./scripts/update-boilerplate-version.sh", - "lint:ci": "yarn lint" + "lint:ci": "yarn lint", + "type-check": "tsc --noEmit" }, "engines": { "node": ">=18.0.0"