Optimize workflow with proper tool installation
This commit is contained in:
@@ -20,14 +20,17 @@ jobs:
|
|||||||
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
|
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
|
||||||
git checkout ${{ github.sha }}
|
git checkout ${{ github.sha }}
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq && apt-get install -y -qq nodejs npm 2>/dev/null || true
|
apt-get update -qq && apt-get install -y -qq nodejs npm
|
||||||
npm config set registry https://registry.npmmirror.com
|
npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Generate Prisma
|
||||||
|
run: npx prisma generate
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
@@ -77,9 +80,9 @@ jobs:
|
|||||||
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
|
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
|
||||||
git checkout ${{ github.sha }}
|
git checkout ${{ github.sha }}
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq && apt-get install -y -qq nodejs npm 2>/dev/null || true
|
apt-get update -qq && apt-get install -y -qq nodejs npm
|
||||||
npm config set registry https://registry.npmmirror.com
|
npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user