Workflow updates

pull/5896/head
tugcekucukoglu 2024-06-14 17:52:08 +03:00
parent 917ef22d9a
commit 9e2ece71af
6 changed files with 8823 additions and 7454 deletions

View File

@ -17,25 +17,31 @@ jobs:
strategy:
matrix:
node-version: [16.x]
node-version: [18, 20]
steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'pnpm'
- name: Install node packages
run: npm run setup
run: pnpm run setup
- name: Generate api doc
run: npm run apidoc
run: pnpm run apidoc
- name: Code Format
run: npm run format
run: pnpm run format
- name: Commit doc
run: |

View File

@ -15,18 +15,18 @@ jobs:
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'pnpm'
- name: Build
run: |
npm run setup
npm run build:lib
pnpm run setup
pnpm run build:lib

View File

@ -13,31 +13,38 @@ jobs:
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18, 20]
steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'pnpm'
- name: Build
run: |
npm run setup
pnpm run setup
- name: Lint Check
if: ${{ success() }}
run: |
npm run lint
pnpm run lint
- name: Code Format Check
id: codeFormatCheck
if: ${{ success() }}
run: |
npm run format:check
pnpm run format:check
- name: Code Format
if: always() && steps.codeFormatCheck.outcome == 'failure'
@ -51,7 +58,7 @@ jobs:
- name: Security Check
if: ${{ success() }}
run: |
npm run security:check
pnpm run security:check
# - name: Unit Tests Check
# if: ${{ success() }}

View File

@ -24,33 +24,33 @@ jobs:
with:
message: 'Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please [manually link to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#manually-linking-a-pull-request-or-branch-to-an-issue-using-the-issue-sidebar) or mention it in the description using #<issue_id>.'
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
cache: 'npm'
- name: Install packages
run: |
npm run setup
pnpm run setup
- name: Code Format
id: codeFormat
run: |
npm run format:check
pnpm run format:check
- name: Unit Test
id: unitTest
run: |
npm run test:unit
pnpm run test:unit
- name: Lint
run: |
npm run lint
pnpm run lint
- name: Security
run: |
npm run security:check
pnpm run security:check
- name: Add Code Format Fail Comment
if: always() && steps.codeFormat.outcome == 'failure'

View File

@ -12,7 +12,7 @@
"url": "https://github.com/primefaces/primevue/issues"
},
"scripts": {
"setup": "rm -rf **/node_modules **/dist ./pnpm-lock.yaml && pnpm install",
"setup": "rm -rf **/node_modules **/**/node_modules **/dist ./pnpm-lock.yaml && pnpm install",
"release": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks",
"release:beta": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --tag beta",
"release:rc": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --tag rc",
@ -29,7 +29,7 @@
"build:showcase": "pnpm --filter showcase build:prebuild",
"dev": "pnpm --filter showcase dev",
"module:dev": "pnpm --filter @primevue/nuxt-module dev",
"security:check": "pnpm audit --production --audit-level high",
"security:check": "pnpm audit --prod --audit-level high",
"format": "prettier --write \"**/*.{vue,js,mjs,ts,d.ts}\" \"!packages/themes/types/**/*.d.ts\"",
"format:check": "prettier --check \"**/*.{vue,js,mjs,ts,d.ts}\" \"!packages/themes/types/**/*.d.ts\"",
"lint": "eslint --ext \".vue,.js,.mjs,.ts\" --ignore-path .gitignore . --cache",
@ -43,8 +43,12 @@
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^6.0.0-beta.9",
"eslint": "^9.2.0",
"prettier": "^3.2.5",
"eslint": "^8.30.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-nuxt": "^4.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.4.0",
"prettier": "2.7.1",
"pnpm": "9.1.4"
},
"publishConfig": {

File diff suppressed because it is too large Load Diff