From fa1e062f7b2403844fe23af6a1e072c410880a1c Mon Sep 17 00:00:00 2001
From: Sheng Chen
Date: Mon, 31 May 2021 11:16:24 +0800
Subject: [PATCH 1/2] chore: Use GitHub Actions for CI
---
.github/workflows/build.yml | 71 +++++++++++++++++++++++++++++++++++++
.travis.yml | 19 ----------
.vscodeignore | 1 -
README.md | 4 +--
docs/README_zh-CN.md | 4 +--
5 files changed, 75 insertions(+), 24 deletions(-)
create mode 100644 .github/workflows/build.yml
delete mode 100644 .travis.yml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..c72a0bc7
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,71 @@
+name: CI
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ linux:
+ name: Linux
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup Node.js environment
+ uses: actions/setup-node@v2
+ with:
+ node-version: 12
+
+ - name: Install Node.js modules
+ run: npm install
+
+ - name: Lint
+ run: npm run lint
+
+ - name: VSCE Packge
+ run: npx vsce package
+
+ windows:
+ name: Windows
+ runs-on: windows-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup Node.js environment
+ uses: actions/setup-node@v2
+ with:
+ node-version: 12
+
+ - name: Install Node.js modules
+ run: npm install
+
+ - name: Lint
+ run: npm run lint
+
+ - name: VSCE Packge
+ run: npx vsce package
+
+ darwin:
+ name: macOS
+ runs-on: macos-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup Node.js environment
+ uses: actions/setup-node@v2
+ with:
+ node-version: 12
+
+ - name: Install Node.js modules
+ run: npm install
+
+ - name: Lint
+ run: npm run lint
+
+ - name: VSCE Packge
+ run: npx vsce package
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 6bbae841..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-language: node_js
-
-node_js:
- - 'lts/*'
-
-before_install:
- - if [ $TRAVIS_OS_NAME == "linux" ]; then
- export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
- sh -e /etc/init.d/xvfb start;
- sleep 3;
- fi
-
-install:
- - npm install -g vsce
- - npm install
-
-script:
- - npm run lint
- - vsce package
diff --git a/.vscodeignore b/.vscodeignore
index 8cdceec0..7a04907d 100644
--- a/.vscodeignore
+++ b/.vscodeignore
@@ -5,7 +5,6 @@ test/**
src/**
**/*.map
.gitignore
-.travis.yml
package-lock.json
tsconfig.json
tslint.json
diff --git a/README.md b/README.md
index 3396d0c7..b432be98 100644
--- a/README.md
+++ b/README.md
@@ -6,8 +6,8 @@
-
-
+
+
diff --git a/docs/README_zh-CN.md b/docs/README_zh-CN.md
index 608c6226..e4760015 100644
--- a/docs/README_zh-CN.md
+++ b/docs/README_zh-CN.md
@@ -6,8 +6,8 @@
-
-
+
+
From c4eeb3d28224962ed21d1914e9fa8af60ba6c807 Mon Sep 17 00:00:00 2001
From: Sheng Chen
Date: Mon, 31 May 2021 11:18:54 +0800
Subject: [PATCH 2/2] Build on master branch
---
.github/workflows/build.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c72a0bc7..1df11a00 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,9 +2,9 @@ name: CI
on:
push:
- branches: [ main ]
+ branches: [ master ]
pull_request:
- branches: [ main ]
+ branches: [ master ]
jobs:
linux: