Skip to content

Commit 8cb78e9

Browse files
committed
Migrate CI to GitHub Actions
1 parent 6abc96e commit 8cb78e9

File tree

3 files changed

+33
-23
lines changed

3 files changed

+33
-23
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
go: ['1.14', '1.15' ]
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
- name: Setup Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: ${{ matrix.go }}
23+
- name: Debug Vim version
24+
run: vim --version
25+
- name: Install gosumcheck
26+
run: env GO111MODULE=off go get github.com/haya14busa/gosum/cmd/gosumcheck
27+
- name: Test
28+
run: go test -v -race ./...
29+
- name: Check code generation diff
30+
run: bash go/generate.sh && ! git diff | grep '^'
31+
- name: Check gosumcheck
32+
run: gosumcheck ./...

.travis.yml

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

README.mkd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Vim Script Parser written in Go
22

3-
[![Build Status](https://travis-ci.org/vim-jp/go-vimlparser.svg?branch=master)](https://travis-ci.org/vim-jp/go-vimlparser)
3+
[![CI Status](https://github.com/vim-jp/go-vimlparser/workflows/CI/badge.svg)](https://github.com/vim-jp/go-vimlparser/actions)
44
[![codecov](https://codecov.io/gh/vim-jp/go-vimlparser/branch/master/graph/badge.svg)](https://codecov.io/gh/vim-jp/go-vimlparser)
55
[![Sourcegraph](https://sourcegraph.com/github.com/vim-jp/go-vimlparser/-/badge.svg)](https://sourcegraph.com/github.com/vim-jp/go-vimlparser?badge)
66
[![GoDoc](https://godoc.org/github.com/vim-jp/go-vimlparser?status.svg)](https://godoc.org/github.com/vim-jp/go-vimlparser)

0 commit comments

Comments
 (0)