mirror of
https://github.com/readur/readur.git
synced 2026-02-21 14:30:55 -06:00
fix(build): update npm ci to npm install
This commit is contained in:
12
.github/workflows/test-e2e.yml
vendored
12
.github/workflows/test-e2e.yml
vendored
@@ -16,7 +16,7 @@ env:
|
||||
jobs:
|
||||
e2e-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
@@ -54,8 +54,8 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Cache cargo registry
|
||||
@@ -69,7 +69,6 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-
|
||||
|
||||
|
||||
- name: Build backend
|
||||
run: cargo build --release
|
||||
env:
|
||||
@@ -79,7 +78,7 @@ jobs:
|
||||
- name: Build frontend
|
||||
working-directory: ./frontend
|
||||
run: |
|
||||
npm ci
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Start backend server
|
||||
@@ -106,7 +105,6 @@ jobs:
|
||||
sleep 2
|
||||
done
|
||||
|
||||
|
||||
- name: Install Playwright browsers
|
||||
working-directory: ./frontend
|
||||
run: npx playwright install --with-deps
|
||||
@@ -124,4 +122,4 @@ jobs:
|
||||
if [ -f backend.pid ]; then
|
||||
kill $(cat backend.pid) || true
|
||||
rm backend.pid
|
||||
fi
|
||||
fi
|
||||
|
||||
14
.github/workflows/test-unit.yml
vendored
14
.github/workflows/test-unit.yml
vendored
@@ -16,7 +16,7 @@ env:
|
||||
jobs:
|
||||
rust-unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -66,11 +66,11 @@ jobs:
|
||||
|
||||
frontend-unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./frontend
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -78,15 +78,15 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: npm install
|
||||
|
||||
- name: Run type checking
|
||||
run: npm run type-check
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm test -- --run
|
||||
run: npm test -- --run
|
||||
|
||||
Reference in New Issue
Block a user