ci: use GitHub Actions (#62)
* ci(github-actions): add workflow
* ci(travis): remove
* ci(appveyor): remove
* ci(doc): add actions & codecov badge to README.md
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..cc1c1dd
--- /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]
+ 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 62fc8e0..ee8a59d 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,4 +1,3 @@
.*
-appveyor.yml
spec
coverage
diff --git a/.ratignore b/.ratignore
index 7ba3888..79c6997 100644
--- a/.ratignore
+++ b/.ratignore
@@ -1,2 +1 @@
-appveyor.yml
spec
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 5bff8c1..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-language: node_js
-sudo: false
-node_js:
- - 10
- - 12
-
-install:
- - npm install
-
-script:
- - npm test
diff --git a/README.md b/README.md
index 212f619..b6c6a02 100644
--- a/README.md
+++ b/README.md
@@ -19,11 +19,11 @@
#
-->
-[![Build status](https://ci.appveyor.com/api/projects/status/a00hk739gm700dk4?svg=true)](https://ci.appveyor.com/project/Humbedooh/cordova-create)
-[![Build Status](https://travis-ci.org/apache/cordova-create.svg?branch=master)](https://travis-ci.org/apache/cordova-create)
-
# cordova-create
+[![Node CI](https://github.com/apache/cordova-create/workflows/Node%20CI/badge.svg?branch=master)](https://github.com/apache/cordova-create/actions?query=branch%3Amaster)
+[![codecov.io](https://codecov.io/github/apache/cordova-create/coverage.svg?branch=master)](https://codecov.io/github/apache/cordova-create?branch=master)
+
This module is used for creating cordova style projects. It also incudes support for [cordova templates](http://cordova.apache.org/docs/en/latest/guide/cli/template.html). It can fetch templates from npm and git.
## Usage:
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index dc43cac..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# appveyor file
-# http://www.appveyor.com/docs/appveyor-yml
-
-environment:
- matrix:
- - nodejs_version: 10
- - nodejs_version: 12
-
-install:
- - ps: Install-Product node $env:nodejs_version
- - npm install
-
-build: off
-
-test_script:
- - node --version
- - npm --version
- - npm test