Skip to content

Commit 8581f70

Browse files
committed
Add github actions CI script
1 parent 6b290a4 commit 8581f70

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: main
2+
on: [push]
3+
jobs:
4+
build-and-test:
5+
runs-on: ubuntu-latest
6+
name: Build and test
7+
steps:
8+
- uses: actions/checkout@v1
9+
10+
- uses: actions/cache@v2
11+
with:
12+
path: '/home/runner/work/codemirror/codemirror/node_modules'
13+
key: ${{ runner.os }}-modules
14+
15+
- run: npm prepare
16+
17+
- run: npm test

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CodeMirror
22

3-
[![Build Status](https://travis-ci.org/codemirror/CodeMirror.svg)](https://travis-ci.org/codemirror/CodeMirror)
3+
[![Build Status](https://github.com/codemirror/codemirror/workflows/main/badge.svg)](https://github.com/codemirror/codemirror/actions)
44
[![NPM version](https://img.shields.io/npm/v/codemirror.svg)](https://www.npmjs.org/package/codemirror)
55

66
CodeMirror is a versatile text editor implemented in JavaScript for

0 commit comments

Comments
 (0)