Skip to content

Commit 57a2976

Browse files
authored
Merge pull request microsoft#129 from jasonwilliams/updateCI
Migrate from Travis CI to Github Actions
2 parents a5327b0 + dca0d3d commit 57a2976

File tree

3 files changed

+63
-23
lines changed

3 files changed

+63
-23
lines changed

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
name: Continuous Integration
9+
10+
jobs:
11+
lint:
12+
name: Lint
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Install Node.js
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 14.x
21+
- run: npm install
22+
- name: Linting
23+
run: npm run lint
24+
compile:
25+
name: Compile
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v2
30+
- name: Install Node.js
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: 14.x
34+
- run: npm install
35+
- name: Compiling
36+
run: npm run compile
37+
unit:
38+
name: Unit Tests
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v2
43+
- name: Install Node.js
44+
uses: actions/setup-node@v1
45+
with:
46+
node-version: 14.x
47+
- run: npm install
48+
- run: npm run unit
49+
e2e:
50+
name: E2E Tests
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v2
55+
- name: Install Node.js
56+
uses: actions/setup-node@v1
57+
with:
58+
node-version: 14.x
59+
- run: npm install
60+
- run: npm install
61+
working-directory: ./e2e
62+
- run: npm run e2e

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TypeScript server plugin that adds intellisense to [styled component](https://st
44

55
![](documentation/preview.gif)
66

7-
[![Build Status](https://travis-ci.org/Microsoft/typescript-styled-plugin.svg?branch=master)](https://travis-ci.org/Microsoft/typescript-styled-plugin)
7+
![Build Status](https://github.com/github/docs/actions/workflows/ci.yml/badge.svg)
88

99
**Features**
1010

0 commit comments

Comments
 (0)