Skip to content

Commit

Permalink
CI: Maintenance, update checkout, setup-node and cache to v2 (#4813)
Browse files Browse the repository at this point in the history
- Run on PRs
- Use v2 of checkout, setup-node and cache (for faster performance)
  • Loading branch information
EwoutH committed Feb 4, 2021
1 parent e8b6f15 commit 8d3d513
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/ci.yml
Expand Up @@ -2,8 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-only

name: CI

on: [push]
on: [push, pull_request]

jobs:
lint:
Expand All @@ -12,12 +11,11 @@ jobs:
steps:
- run: lsb_release -a
- run: uname -a
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.18.3'
- run: npm install -g yarn@1.22.0

- run: yarn install --frozen-lockfile
- run: yarn generate
- run: yarn lint
Expand All @@ -32,12 +30,11 @@ jobs:

steps:
- run: uname -a
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.18.3'
- run: npm install -g yarn@1.22.0

- run: yarn install --frozen-lockfile
- run: yarn generate
- run: yarn prepare-beta-build
Expand All @@ -55,13 +52,12 @@ jobs:
steps:
- run: lsb_release -a
- run: uname -a
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.18.3'
- run: sudo apt-get install xvfb
- run: npm install -g yarn@1.22.0

- run: yarn install --frozen-lockfile
- run: yarn generate
- run: yarn prepare-beta-build
Expand All @@ -83,12 +79,11 @@ jobs:
- run: systeminfo
- run: git config --global core.autocrlf false
- run: git config --global core.eol lf
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.18.3'
- run: npm install -g yarn@1.22.0

- run: yarn install --frozen-lockfile
- run: yarn generate
- run: node build\grunt.js
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/snyk.yml
Expand Up @@ -2,7 +2,6 @@
# SPDX-License-Identifier: AGPL-3.0-only

name: Snyk

on:
schedule:
- cron: '0 12 * * *'
Expand All @@ -15,8 +14,8 @@ jobs:
steps:
- run: lsb_release -a
- run: uname -a
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.18.3'
- run: npm install -g yarn@1.22.0
Expand Down

0 comments on commit 8d3d513

Please sign in to comment.