Skip to content

Commit

Permalink
Update ci to just use npm
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl committed Jan 4, 2025
1 parent 80e3390 commit 1d8dba2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,19 @@ jobs:
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version-file: ".nvmrc"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- run: pnpm install --frozen-lockfile
- run: npm ci

- uses: cypress-io/github-action@ebe8b24c4428922d0f793a5c4c96853a633180e3 # v6.6.0
with:
config-file: cypress.config.js
install: false
record: true
parallel: true
build: pnpm run cypress:build
start: pnpm run start
build: npm run cypress:build
start: npm run start
wait-on: "http://localhost:3000"
browser: chrome
spec: cypress/e2e/**
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version-file: ".nvmrc"
cache: "pnpm"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- run: pnpm install --frozen-lockfile
- run: npm ci
- run: tsc
- run: pnpm run lint
- run: npm run lint

lint_prettier:
name: Lint - Prettier
Expand All @@ -39,9 +40,10 @@ jobs:
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version-file: ".nvmrc"
cache: "pnpm"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- run: pnpm install --frozen-lockfile
- run: npm ci
- run: npx pretty-quick --staged --check --pattern "**/*.{js,jsx,ts,tsx}"

jest:
Expand All @@ -55,7 +57,8 @@ jobs:
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version-file: ".nvmrc"
cache: "pnpm"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: npm ci
- run: npm test

0 comments on commit 1d8dba2

Please sign in to comment.