mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 00:18:45 +01:00
Cache node_modules in CI, benchmark workflow
This commit is contained in:
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
@@ -16,7 +16,17 @@ jobs:
|
||||
with:
|
||||
node-version: '14.16.0'
|
||||
- run: npm install -g yarn@1.22.10
|
||||
- run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Cache Desktop node_modules
|
||||
id: cache-desktop-modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
||||
- name: Install Desktop node_modules
|
||||
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- run: yarn generate
|
||||
- run: yarn lint
|
||||
- run: yarn lint-deps
|
||||
@@ -35,7 +45,17 @@ jobs:
|
||||
with:
|
||||
node-version: '14.16.0'
|
||||
- run: npm install -g yarn@1.22.10
|
||||
- run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Cache Desktop node_modules
|
||||
id: cache-desktop-modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
||||
- name: Install Desktop node_modules
|
||||
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- run: yarn generate
|
||||
- run: yarn prepare-beta-build
|
||||
- run: yarn build
|
||||
@@ -58,7 +78,17 @@ jobs:
|
||||
node-version: '14.16.0'
|
||||
- run: sudo apt-get install xvfb
|
||||
- run: npm install -g yarn@1.22.10
|
||||
- run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Cache Desktop node_modules
|
||||
id: cache-desktop-modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
||||
- name: Install Desktop node_modules
|
||||
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- run: yarn generate
|
||||
- run: yarn prepare-beta-build
|
||||
- run: yarn build
|
||||
@@ -84,7 +114,17 @@ jobs:
|
||||
with:
|
||||
node-version: '14.16.0'
|
||||
- run: npm install -g yarn@1.22.10
|
||||
- run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Cache Desktop node_modules
|
||||
id: cache-desktop-modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
||||
- name: Install Desktop node_modules
|
||||
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- run: yarn generate
|
||||
- run: node build\grunt.js
|
||||
- run: yarn test-node
|
||||
|
||||
Reference in New Issue
Block a user