mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-09 20:12:26 +10:00
update CI workflow
This commit is contained in:
41
.github/workflows/lint-test-build.yml
vendored
41
.github/workflows/lint-test-build.yml
vendored
@ -13,39 +13,32 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- uses: actions/checkout@v4.2.2
|
||||||
uses: actions/checkout@v4.1.1
|
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup pnpm
|
- uses: pnpm/action-setup@v4.0.0
|
||||||
uses: pnpm/action-setup@v3.0.0
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4.0.2
|
|
||||||
with:
|
with:
|
||||||
|
version: 9
|
||||||
|
|
||||||
|
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="4 linux-medium-js" --stop-agents-after="build"
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v4.1.0
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
node-version: 20.17.0
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- run: pnpm install --frozen-lockfile
|
||||||
run: pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
- name: Lint
|
- uses: nrwl/nx-set-shas@v4.1.2
|
||||||
run: pnpm lint
|
|
||||||
|
|
||||||
- name: Format
|
- run: pnpm exec nx affected -t lint format:check test build
|
||||||
run: pnpm format:check
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: pnpm test
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: pnpm build
|
|
||||||
env:
|
|
||||||
NODE_ENV: production
|
|
||||||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
|
||||||
|
|||||||
2
nx.json
2
nx.json
@ -34,7 +34,7 @@
|
|||||||
"!{projectRoot}/test-setup.[jt]s",
|
"!{projectRoot}/test-setup.[jt]s",
|
||||||
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)"
|
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)"
|
||||||
],
|
],
|
||||||
"sharedGlobals": []
|
"sharedGlobals": ["{workspaceRoot}/.github/workflows/lint-test-build.yml"]
|
||||||
},
|
},
|
||||||
"generators": {
|
"generators": {
|
||||||
"@nx/react": {
|
"@nx/react": {
|
||||||
|
|||||||
@ -239,7 +239,7 @@
|
|||||||
"zundo": "^2.1.0",
|
"zundo": "^2.1.0",
|
||||||
"zustand": "^4.5.5"
|
"zustand": "^4.5.5"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1",
|
"packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.13.1"
|
"node": ">=20.13.1"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user