Skip to content
Draft
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
115 changes: 57 additions & 58 deletions .github/workflows/ci-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,21 @@
node-version: "20" # Specify the node version you need

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

version: 10

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.OS }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ~/.pnpm-store
key: ${{ runner.OS }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-pnpm-store-
${{ runner.OS }}-pnpm-

- name: Install Dependencies
run: pnpm install --frozen-lockfile


lint:
needs: install-dependencies
runs-on: [ubuntu-latest]
Expand All @@ -51,32 +44,25 @@
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
node-version: "20"

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

version: 10

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.OS }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ~/.pnpm-store
key: ${{ runner.OS }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-pnpm-store-
${{ runner.OS }}-pnpm-

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Run Linter
run: packagenpm run lint
run: pnpm run lint:check

format:
needs: install-dependencies
Expand All @@ -86,35 +72,55 @@
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
node-version: "20"

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

version: 10

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.OS }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ~/.pnpm-store
key: ${{ runner.OS }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-pnpm-store-

${{ runner.OS }}-pnpm-

- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run Prettier
run: pnpm run format:check

types:
needs: install-dependencies
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.OS }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-pnpm-

- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run Prettier
run: npm run check-format
run: pnpm run type:check

test:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
needs: install-dependencies
runs-on: [ubuntu-latest]
steps:
Expand All @@ -122,29 +128,22 @@
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
node-version: "20"

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

version: 10

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.OS }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ~/.pnpm-store
key: ${{ runner.OS }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-pnpm-store-
${{ runner.OS }}-pnpm-

- name: Install Dependencies
run: pnpm install --frozen-lockfile
&& npm run build
run: pnpm install --frozen-lockfile && pnpm run build
- name: Run Tests
run: pnpm run test
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
node_modules
# Logs
logs
*.log
npm-debug.log*
node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
9 changes: 3 additions & 6 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
src
demo
docker
tests
babel.config.js
esbuild.config.mjs
jest.config.js
tsconfig.js
tsconfig.types.mjs
vite.config.js
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

Loading
Loading