You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2021/08/20 01:59:14 UTC
[cordova-docs] branch master updated: ci: workflow cleanup & cache
installed gems (#1192)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 4ab9663 ci: workflow cleanup & cache installed gems (#1192)
4ab9663 is described below
commit 4ab96633207012f94f0f37446de9f31bf4d511c3
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Fri Aug 20 10:59:07 2021 +0900
ci: workflow cleanup & cache installed gems (#1192)
* ci: cache installed gems
* ci: cleanup workflow scripts
---
.github/workflows/ci.yml | 14 ++++++--------
.github/workflows/deploy.yml | 14 ++++++--------
2 files changed, 12 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 436b1fa..9e1fba9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,6 +1,6 @@
name: build test
-on: [pull_request]
+on: [ pull_request ]
jobs:
build:
@@ -8,18 +8,16 @@ jobs:
steps:
- uses: actions/checkout@v2
-
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
+ bundler-cache: true
- - name: Environment Configure
- run: |
- npm install
- bundle instal
+ - name: Run npm install
+ run: npm install
- - name: Test
+ - name: Run npm test
run: npm test
- - name: Dev Build
+ - name: Run dev build
run: npm run build
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 0f91313..a896947 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -17,23 +17,21 @@ jobs:
steps:
- uses: actions/checkout@v2
-
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
+ bundler-cache: true
- - name: Environment Configure
- run: |
- npm install
- bundle instal
+ - name: Run npm install
+ run: npm install
- - name: Test
+ - name: Run npm test
run: npm test
- - name: Build
+ - name: Run build
run: npm run build:prod
- - name: Deploy
+ - name: Run deploy
uses: JamesIves/github-pages-deploy-action@5dc1d5a192aeb5ab5b7d5a77b7d36aea4a7f5c92
with:
BRANCH: asf-site
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org