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 2020/07/23 12:12:25 UTC

[cordova-cli] branch master updated: feat(ci): migrate to github-actions (#518)

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-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new ad8d54b  feat(ci): migrate to github-actions (#518)
ad8d54b is described below

commit ad8d54bfb531abe3c4a62d0ad4ffa61df8851a44
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Thu Jul 23 21:12:16 2020 +0900

    feat(ci): migrate to github-actions (#518)
---
 .github/workflows/ci.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++++++
 .npmignore               |  1 -
 .ratignore               |  1 -
 .travis.yml              | 25 ------------------------
 README.md                |  7 +++++--
 appveyor.yml             | 24 -----------------------
 6 files changed, 56 insertions(+), 53 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..e03d7fa
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,51 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: Node CI
+
+on: [push, pull_request]
+
+jobs:
+  test:
+    name: NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        node-version: [10.x, 12.x, 14.x]
+        os: [ubuntu-latest, windows-latest, macos-latest]
+
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Use Node.js ${{ matrix.node-version }}
+        uses: actions/setup-node@v1
+        with:
+          node-version: ${{ matrix.node-version }}
+
+      - name: Environment Information
+        run: |
+          node --version
+          npm --version
+
+      - name: npm install and test
+        run: npm cit
+        env:
+          CI: true
+
+      - uses: codecov/codecov-action@v1
+        with:
+          fail_ci_if_error: true
diff --git a/.npmignore b/.npmignore
index 130a0f1..9bb35df 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,5 +1,4 @@
 .*
-appveyor.yml
 coverage
 spec
 temp
diff --git a/.ratignore b/.ratignore
index a4ebc08..15c3f3e 100644
--- a/.ratignore
+++ b/.ratignore
@@ -1,4 +1,3 @@
-appveyor.yml
 *.txt
 cordova.cmd
 coverage
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b8e3a23..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-language: node_js
-
-# Performance optimization
-git:
-  depth: 10
-cache:
-  directories:
-    - $HOME/.npm
-
-node_js:
-  - 10
-  - 12
-
-install:
-  - npm install
-  - npm install -g codecov
-
-before_script:
-  # Ensure that bin script actually runs on used Node.js version
-  # to detect and avoid bugs such as apache/cordova-cli#339
-  # (<https://github.com/apache/cordova-cli/issues/339>)
-  - ./bin/cordova --version
-
-after_script:
-  - codecov
diff --git a/README.md b/README.md
index 65961cd..4efcf04 100644
--- a/README.md
+++ b/README.md
@@ -18,11 +18,14 @@
 # under the License.
 #
 -->
-[![Build status](https://ci.appveyor.com/api/projects/status/github/apache/cordova-cli?branch=master)](https://ci.appveyor.com/project/ApacheSoftwareFoundation/cordova-cli)
-[![Build Status](https://travis-ci.org/apache/cordova-cli.svg?branch=master)](https://travis-ci.org/apache/cordova-cli)
 
 # Cordova CLI
 
+[![NPM](https://nodei.co/npm/cordova.png)](https://nodei.co/npm/cordova/)
+
+[![Node CI](https://github.com/apache/cordova-cli/workflows/Node%20CI/badge.svg?branch=master)](https://github.com/apache/cordova-cli/actions?query=branch%3Amaster)
+[![codecov.io](https://codecov.io/github/apache/cordova-cli/coverage.svg?branch=master)](https://codecov.io/github/apache/cordova-cli?branch=master)
+
 > The command line tool to build, deploy and manage [Cordova](http://cordova.apache.org)-based applications.
 
 [Apache Cordova](http://cordova.apache.org) allows for building native mobile applications using HTML, CSS and JavaScript. 
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index bf6b0c1..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# http://www.appveyor.com/docs/appveyor-yml
-
-# Performance optimization
-shallow_clone: true
-cache:
-  - '%APPDATA%\npm-cache'
-
-environment:
-  matrix:
-    - nodejs_version: 10
-    - nodejs_version: 12
-
-install:
-  - ps: Install-Product node $env:nodejs_version
-  - npm install
-
-build: off
-
-test_script:
-  # Workaround for https://github.com/appveyor/ci/issues/2420
-  - set "PATH=%PATH%;C:\Program Files\Git\mingw64\libexec\git-core"
-  - node --version
-  - npm --version
-  - npm test


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org