From e67b8c13e3033257acba2c103fbe0ad4a8cb5b52 Mon Sep 17 00:00:00 2001 From: Sandros94 Date: Sat, 14 Dec 2024 03:08:56 +0100 Subject: [PATCH 1/2] fix: ci --- .github/workflows/ci.yml | 31 ++++++++++++++----------------- package.json | 1 + 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fc5895..4868890 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,33 +9,30 @@ on: branches: - main - dev + workflow_dispatch: jobs: ci: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - node: [20] + runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} + - name: Checkout + uses: actions/checkout@v4 - - name: checkout - uses: actions/checkout@master + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + run_install: false - - name: cache node_modules - uses: actions/cache@v1 + - name: Install Node.js + uses: actions/setup-node@v4 with: - path: node_modules - key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/pnpm-lock.yaml')) }} + node-version: 20 + cache: pnpm - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' - run: pnpm i + run: pnpm install - name: Test run: pnpm test diff --git a/package.json b/package.json index 0fbd1e9..d8c4727 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "build": "unbuild", "dev": "vitest", "lint": "eslint .", + "lint:fix": "eslint --fix .", "release": "yarn build && changelogen --patch && git push --follow-tags && yarn publish", "test": "pnpm lint && pnpm test:types && vitest --run", "test:types": "tsc --noEmit --skipLibCheck" From 7aadb67f27a1aa22ed7d406c42efb52cbda7320f Mon Sep 17 00:00:00 2001 From: Sandros94 Date: Sat, 14 Dec 2024 13:31:01 +0100 Subject: [PATCH 2/2] up --- .gitignore | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d11ab90..178b3c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,68 @@ -.vscode +# .gitignore v1.4.0 +# https://gist.github.com/Sandros94/7f3dc1539c8f5905c495aa1bb417589c + +# Dependencies node_modules + +# Temp directories +.temp +.tmp +.cache + +# Generated dirs dist -types \ No newline at end of file + +# Nuxt +.nitro +.nuxt +.output +.data +.vercel_build_output +.build-* +.netlify + +# PNPM +.pnpm-store + +# Yarn +**/.yarn/cache +**/.yarn/*state* + +# Local env files +.env +.env.* +!.env.example + +# Testing +reports +coverage +*.lcov +.nyc_output + +# Logs +logs +*.log + +# VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Intellij idea +*.iml +.idea + +# OSX +.DS_Store +.AppleDouble +.LSOverride +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# Project specific