Skip to content

Commit

Permalink
upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
3axap4eHko committed Mar 9, 2024
1 parent d5a84ac commit 42cd3cd
Show file tree
Hide file tree
Showing 5 changed files with 3,990 additions and 3,693 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
matrix:
node-version: [20.x]
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -18,24 +18,30 @@ jobs:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false

- name: Environment log
id: env
run: |
node --version
yarn --version
pnpm --version
- name: Install dependecies
- name: Install dependencies
run: |
yarn install --frozen-lockfile
pnpm install --frozen-lockfile
- name: Run build process
run: |
yarn build
pnpm build
- name: Run testing
run: |
yarn test
yarn test:build
pnpm test
pnpm test:build
- name: Upload test coverage
uses: codecov/codecov-action@v3
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,41 @@ jobs:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/

- name: Install pnpm ⚙️
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Environment log ⚙️
id: env
run: |
node --version
yarn --version
pnpm --version
- name: Install dependencies 🔧
run: |
yarn install --frozen-lockfile
pnpm install --frozen-lockfile
- name: Upgrade 🌠
id: updates
run: |
PENDING=$(yarn outdated --json|tail -1|jq '.data.body'|jq length)
PENDING=$(pnpm outdated --json|jq length)
echo "::set-output name=PENDING::$PENDING"
yarn upgrade
DONE=$(yarn outdated --json|tail -1|jq '.data.body'|jq length)
pnpm up --latest
DONE=$(pnpm outdated --json|jq length)
echo "::set-output name=DONE::$DONE"
- name: Build process 🧱
if: steps.updates.outputs.PENDING != steps.updates.outputs.DONE
run: |
yarn build
pnpm build
- name: Test 🧪
if: steps.updates.outputs.PENDING != steps.updates.outputs.DONE
run: |
yarn test
yarn test:build
pnpm test
pnpm test:build
- name: Commit 🔒
if: steps.updates.outputs.PENDING != steps.updates.outputs.DONE
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@
},
"homepage": "https://github.com/3axap4eHko/asygen#readme",
"devDependencies": {
"@swc/core": "^1.3.64",
"@swc/jest": "^0.2.26",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"eslint": "^8.42.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^5.0.0",
"fast-glob": "^3.2.12",
"husky": "^8.0.3",
"@swc/core": "^1.4.6",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.25",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"fast-glob": "^3.3.2",
"husky": "^9.0.11",
"inop": "^0.4.2",
"jest": "^29.5.0",
"prettier": "^3.0.1",
"ts-jest": "^29.1.0",
"typescript": "^5.1.3"
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"typescript": "^5.4.2"
}
}
Loading

0 comments on commit 42cd3cd

Please sign in to comment.