Skip to content

Commit 00c25cc

Browse files
committed
chore: Use GitHub Actions for CI
1 parent 4c0d59a commit 00c25cc

File tree

5 files changed

+75
-24
lines changed

5 files changed

+75
-24
lines changed

.travis.yml

-19
This file was deleted.

.vscode/workflows/build.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
linux:
11+
name: Linux
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Node.js environment
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: 12
21+
22+
- name: Install Node.js modules
23+
run: npm install
24+
25+
- name: Lint
26+
run: npm run lint
27+
28+
- name: VSCE Packge
29+
run: npx vsce package
30+
31+
windows:
32+
name: Windows
33+
runs-on: windows-latest
34+
timeout-minutes: 30
35+
steps:
36+
- uses: actions/checkout@v2
37+
38+
- name: Setup Node.js environment
39+
uses: actions/setup-node@v2
40+
with:
41+
node-version: 12
42+
43+
- name: Install Node.js modules
44+
run: npm install
45+
46+
- name: Lint
47+
run: npm run lint
48+
49+
- name: VSCE Packge
50+
run: npx vsce package
51+
52+
darwin:
53+
name: macOS
54+
runs-on: macos-latest
55+
timeout-minutes: 30
56+
steps:
57+
- uses: actions/checkout@v2
58+
59+
- name: Setup Node.js environment
60+
uses: actions/setup-node@v2
61+
with:
62+
node-version: 12
63+
64+
- name: Install Node.js modules
65+
run: npm install
66+
67+
- name: Lint
68+
run: npm run lint
69+
70+
- name: VSCE Packge
71+
run: npx vsce package

.vscodeignore

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ test/**
55
src/**
66
**/*.map
77
.gitignore
8-
.travis.yml
98
package-lock.json
109
tsconfig.json
1110
tslint.json

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<img src="https://raw.githubusercontent.com/LeetCode-OpenSource/vscode-leetcode/master/resources/LeetCode.png" alt="">
77
</p>
88
<p align="center">
9-
<a href="https://travis-ci.org/LeetCode-OpenSource/vscode-leetcode">
10-
<img src="https://img.shields.io/travis/LeetCode-OpenSource/vscode-leetcode.svg?style=flat-square" alt="">
9+
<a href="https://github.com/LeetCode-OpenSource/vscode-leetcode/actions?query=workflow%3ACI+branch%3Amaster">
10+
<img src="https://img.shields.io/github/workflow/status/LeetCode-OpenSource/vscode-leetcode/CI/master?style=flat-square" alt="">
1111
</a>
1212
<a href="https://gitter.im/vscode-leetcode/Lobby">
1313
<img src="https://img.shields.io/gitter/room/LeetCode-OpenSource/vscode-leetcode.svg?style=flat-square" alt="">

docs/README_zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<img src="https://raw.githubusercontent.com/LeetCode-OpenSource/vscode-leetcode/master/resources/LeetCode.png" alt="">
77
</p>
88
<p align="center">
9-
<a href="https://travis-ci.org/LeetCode-OpenSource/vscode-leetcode">
10-
<img src="https://img.shields.io/travis/LeetCode-OpenSource/vscode-leetcode.svg?style=flat-square" alt="">
9+
<a href="https://github.com/LeetCode-OpenSource/vscode-leetcode/actions?query=workflow%3ACI+branch%3Amaster">
10+
<img src="https://img.shields.io/github/workflow/status/LeetCode-OpenSource/vscode-leetcode/CI/master?style=flat-square" alt="">
1111
</a>
1212
<a href="https://gitter.im/vscode-leetcode/Lobby">
1313
<img src="https://img.shields.io/gitter/room/LeetCode-OpenSource/vscode-leetcode.svg?style=flat-square" alt="">

0 commit comments

Comments
 (0)