Skip to content
Closed
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
10 changes: 10 additions & 0 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/theme/ThemeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ThemeContextProvider = ({
const contextValue = useMemo(
() => ({ theme, fonts, changeTheme }),
[theme, fonts, changeTheme]
)
);

return (
<ThemeContext.Provider value={contextValue}>
Expand Down
Loading