From 998ce971447d0cc94c9c3f3555969deb032c16e3 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 8 Jul 2020 16:35:54 -0400 Subject: [PATCH 1/4] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20reduce=20test=20durati?= =?UTF-8?q?on=20in=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/api/testem.js | 2 +- addons/auth/testem.js | 2 +- addons/rose/testem.js | 2 +- ui/core/testem.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/api/testem.js b/addons/api/testem.js index 854db8659..dfb911881 100644 --- a/addons/api/testem.js +++ b/addons/api/testem.js @@ -3,7 +3,7 @@ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, - launch_in_ci: ['Chrome', 'Firefox'], + launch_in_ci: ['Chrome'], launch_in_dev: ['Chrome', 'Firefox'], browser_start_timeout: 120, browser_args: { diff --git a/addons/auth/testem.js b/addons/auth/testem.js index 854db8659..dfb911881 100644 --- a/addons/auth/testem.js +++ b/addons/auth/testem.js @@ -3,7 +3,7 @@ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, - launch_in_ci: ['Chrome', 'Firefox'], + launch_in_ci: ['Chrome'], launch_in_dev: ['Chrome', 'Firefox'], browser_start_timeout: 120, browser_args: { diff --git a/addons/rose/testem.js b/addons/rose/testem.js index 854db8659..dfb911881 100644 --- a/addons/rose/testem.js +++ b/addons/rose/testem.js @@ -3,7 +3,7 @@ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, - launch_in_ci: ['Chrome', 'Firefox'], + launch_in_ci: ['Chrome'], launch_in_dev: ['Chrome', 'Firefox'], browser_start_timeout: 120, browser_args: { diff --git a/ui/core/testem.js b/ui/core/testem.js index be5731f94..7381bd84e 100644 --- a/ui/core/testem.js +++ b/ui/core/testem.js @@ -1,7 +1,7 @@ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, - launch_in_ci: ['Chrome', 'Firefox'], + launch_in_ci: ['Chrome'], launch_in_dev: ['Chrome', 'Firefox'], browser_start_timeout: 120, browser_args: { From 28a1a71d89f6ce2e2f82cd24d85611606b6fafab Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 8 Jul 2020 16:53:43 -0400 Subject: [PATCH 2/4] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20cache=20node=5Fmodules?= =?UTF-8?q?=20in=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/monorepo-validate.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/monorepo-validate.yaml b/.github/workflows/monorepo-validate.yaml index f6e52ae2d..25468499f 100644 --- a/.github/workflows/monorepo-validate.yaml +++ b/.github/workflows/monorepo-validate.yaml @@ -7,6 +7,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + id: cache + with: + path: **/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' @@ -18,6 +23,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + id: cache + with: + path: **/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' @@ -29,6 +39,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + id: cache + with: + path: **/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' @@ -40,6 +55,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + id: cache + with: + path: **/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' From f1ae60a04d7d08310ae582a3e55f85f0aef0ab41 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 8 Jul 2020 16:55:34 -0400 Subject: [PATCH 3/4] ci: fix yaml and add cache-hit clause to yarn install --- .github/workflows/monorepo-validate.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/monorepo-validate.yaml b/.github/workflows/monorepo-validate.yaml index 25468499f..f5d904f41 100644 --- a/.github/workflows/monorepo-validate.yaml +++ b/.github/workflows/monorepo-validate.yaml @@ -10,12 +10,13 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: **/node_modules + path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install + if: steps.cache.outputs.cache-hit != 'true' - run: yarn run compliance:licenses audit: @@ -26,12 +27,13 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: **/node_modules + path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install + if: steps.cache.outputs.cache-hit != 'true' - run: yarn run compliance:audit lint: @@ -42,12 +44,13 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: **/node_modules + path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install + if: steps.cache.outputs.cache-hit != 'true' - run: yarn lint test: @@ -58,10 +61,11 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: **/node_modules + path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install + if: steps.cache.outputs.cache-hit != 'true' - run: yarn test From 8df2bd94f61c727fd137c9f9a5a8b0315a9f57ec Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 8 Jul 2020 17:03:20 -0400 Subject: [PATCH 4/4] ci: random tweak to kick off workflow --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ac3e10ded..abc20fb67 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ This top-level repository provides limited common tasks, such as installation and commit assistance. However, most tasks must be executed from within a subproject, e.g. running or testing. + **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*