CI: Maintenance, update checkout, setup-node and cache to v2 (#4813)
- Run on PRs - Use v2 of checkout, setup-node and cache (for faster performance)
This commit is contained in:
parent
e8b6f15ff5
commit
8d3d51314e
|
@ -2,8 +2,7 @@
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
on: [push, pull_request]
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
@ -12,12 +11,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: lsb_release -a
|
- run: lsb_release -a
|
||||||
- run: uname -a
|
- run: uname -a
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12.18.3'
|
node-version: '12.18.3'
|
||||||
- run: npm install -g yarn@1.22.0
|
- run: npm install -g yarn@1.22.0
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
- run: yarn generate
|
- run: yarn generate
|
||||||
- run: yarn lint
|
- run: yarn lint
|
||||||
|
@ -32,12 +30,11 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: uname -a
|
- run: uname -a
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12.18.3'
|
node-version: '12.18.3'
|
||||||
- run: npm install -g yarn@1.22.0
|
- run: npm install -g yarn@1.22.0
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
- run: yarn generate
|
- run: yarn generate
|
||||||
- run: yarn prepare-beta-build
|
- run: yarn prepare-beta-build
|
||||||
|
@ -55,13 +52,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: lsb_release -a
|
- run: lsb_release -a
|
||||||
- run: uname -a
|
- run: uname -a
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12.18.3'
|
node-version: '12.18.3'
|
||||||
- run: sudo apt-get install xvfb
|
- run: sudo apt-get install xvfb
|
||||||
- run: npm install -g yarn@1.22.0
|
- run: npm install -g yarn@1.22.0
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
- run: yarn generate
|
- run: yarn generate
|
||||||
- run: yarn prepare-beta-build
|
- run: yarn prepare-beta-build
|
||||||
|
@ -83,12 +79,11 @@ jobs:
|
||||||
- run: systeminfo
|
- run: systeminfo
|
||||||
- run: git config --global core.autocrlf false
|
- run: git config --global core.autocrlf false
|
||||||
- run: git config --global core.eol lf
|
- run: git config --global core.eol lf
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12.18.3'
|
node-version: '12.18.3'
|
||||||
- run: npm install -g yarn@1.22.0
|
- run: npm install -g yarn@1.22.0
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
- run: yarn generate
|
- run: yarn generate
|
||||||
- run: node build\grunt.js
|
- run: node build\grunt.js
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
name: Snyk
|
name: Snyk
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 12 * * *'
|
- cron: '0 12 * * *'
|
||||||
|
@ -15,8 +14,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: lsb_release -a
|
- run: lsb_release -a
|
||||||
- run: uname -a
|
- run: uname -a
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12.18.3'
|
node-version: '12.18.3'
|
||||||
- run: npm install -g yarn@1.22.0
|
- run: npm install -g yarn@1.22.0
|
||||||
|
|
Loading…
Reference in New Issue