Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): update deps-dev #408

Merged
merged 3 commits into from
Sep 5, 2024
Merged
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
35 changes: 35 additions & 0 deletions .github/actions/install-dependencies/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Install Dependencies

description: This workflow will install dependencies and should be used as an action for other workflows

runs:
using: "composite"

steps:
- name: Install pnpm 📦
uses: pnpm/[email protected]
with:
version: 9.3.0
run_install: false

- name: Setup pnpm config 📖
run: pnpm config set store-dir .pnpm-store
shell: bash

- name: Get pnpm store directory 🏬
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache 🧃
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies 👨🏻‍💻
run: pnpm install --frozen-lockfile --ignore-scripts
shell: bash
38 changes: 17 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,46 +12,42 @@ on:
- master
- develop

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
ci:
build-and-test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [14]
node: [20]

steps:
- name: Checkout 🛎
uses: actions/checkout@master

- name: Setup node env 🏗
uses: actions/setup-node@v2.1.2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true

- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules 📦
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies 👨🏻‍💻
run: yarn
- name: Install Dependencies 👨🏻‍💻
uses: ./.github/actions/install-dependencies

- name: Run linter 👀
run: yarn lint
run: pnpm lint

- name: Run tests 🧪
run: yarn ci
uses: cypress-io/github-action@v5
with:
install-command: pnpm cypress install
start: pnpm ci:test
command: pnpm test
browser: chrome

- name: Build App 🛠
run: yarn build
run: pnpm build
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,35 @@
"test": "cypress run",
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
"lint": "pnpm lint:js",
"ci": "start-server-and-test dev http-get://localhost:3000 test"
"ci:test": "start-server-and-test dev http-get://localhost:3000 test"
},
"dependencies": {
"@vueuse/core": "^10.7.2",
"@vueuse/core": "^11.0.3",
"vue-demi": "latest"
},
"devDependencies": {
"@antfu/eslint-config": "^0.43.1",
"@types/node": "^20.11.17",
"@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue": "^5.1.3",
"@vue/compiler-sfc": "^3.0.5",
"cypress": "^7.7.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^9.0.11",
"husky": "^9.1.5",
"np": "^7.5.0",
"prettier": "^2.8.8",
"start-server-and-test": "^1.12.6",
"typescript": "^4.5.2",
"vite": "^5.1.2",
"vite-plugin-windicss": "^1.2.7",
"vite-svg-loader": "^2.1.0",
"typescript": "^5.5.4",
"vite": "^5.4.3",
"vite-plugin-windicss": "^1.9.3",
"vite-svg-loader": "^5.1.0",
"vue": ">=3.0.5",
"vue-router": "4",
"vue-tsc": "^0.29.8",
"vue-tsc": "^2.1.6",
"vue2": "npm:vue@2",
"windicss": "^3.1.5"
"windicss": "^3.5.6"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.1",
Expand Down
Loading
Loading