我有一个react的项目,我在github中创建了一个文件夹,用于操作。但是,返回了下一个错误。
我的代码:
name: UnitTests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Prepare cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install node-sass
run: npm i node-sass
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:ci
包是-"test:ci": "npm run test --findRelatedTests ./src -b",
我需要解决方案,但找不到
所有测试均正确
1条答案
按热度按时间szqfcxe21#
将
npm ci
替换为npm install