From cf11b6381f15166c494f25f8b6a5f52d1830925f Mon Sep 17 00:00:00 2001 From: Nikita Grevtsov Date: Mon, 1 Dec 2025 17:12:04 +0500 Subject: [PATCH 1/2] ci: add checks --- .github/actions/setup-node/action.yml | 10 ++++++++++ .github/workflows/lint.yml | 17 +++++++++++++++++ .github/workflows/tests.yml | 18 ++++++++++++++++++ .github/workflows/typecheck.yml | 17 +++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/tests.yml create mode 100644 .github/workflows/typecheck.yml diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index 10eebaec..8f751cc2 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -1,9 +1,19 @@ name: 'Setup Node.js with Dependencies' description: 'Checkout repo, setup Node.js, cache and install dependencies' +inputs: + fetch-depth: + description: + 'Number of commits to fetch. 0 indicates all history for all branches and + tags. Default: 1' + default: 1 runs: using: 'composite' steps: + - uses: actions/checkout@v6 + with: + fetch-depth: ${{ inputs.fetch-depth }} + - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..9dc2be15 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint + +on: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: ./.github/actions/setup-node + + - name: Run Lint + run: yarn lint:check diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..5e653a8f --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,18 @@ +name: Tests + +on: + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: ./.github/actions/setup-node + + - name: Run Tests + run: yarn test --ci diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml new file mode 100644 index 00000000..ec6f7369 --- /dev/null +++ b/.github/workflows/typecheck.yml @@ -0,0 +1,17 @@ +name: Typecheck + +on: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + typecheck: + runs-on: ubuntu-latest + steps: + - uses: ./.github/actions/setup-node + + - name: Run Typecheck + run: yarn tsc --noEmit From 0640c10162a9eb45579c811e80efb7835e265dc9 Mon Sep 17 00:00:00 2001 From: Nikita Grevtsov <36564314+grevtsovna@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:14:35 +0500 Subject: [PATCH 2/2] Broke linter --- src/theme/ThemeContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/ThemeContext.tsx b/src/theme/ThemeContext.tsx index 900826e1..7ab0b480 100644 --- a/src/theme/ThemeContext.tsx +++ b/src/theme/ThemeContext.tsx @@ -43,7 +43,7 @@ export const ThemeContextProvider = ({ const contextValue = useMemo( () => ({ theme, fonts, changeTheme }), [theme, fonts, changeTheme] - ) + ); return (