8000 chore: Use GitHub Actions for CI (#709) · pipi1226/vscode-leetcode@172c878 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 172c878

Browse files
authored
chore: Use GitHub Actions for CI (LeetCode-OpenSource#709)
1 parent 4c0d59a commit 172c878

File tree

5 files changed

+75
-24
lines changed

5 files changed

+75
-24
lines changed

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
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

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.vscodeignore

Lines changed: 0 additions & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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)
0