From 9c9adf16db3445005181751f0d3db143d58fe24d Mon Sep 17 00:00:00 2001 From: Liu-Cheng Xu Date: Tue, 22 Sep 2020 16:13:19 +0800 Subject: [PATCH] Migration to GitHub Action (#342) * Migration to GitHub Action * Update badge --- .github/workflows/ci.yml | 19 +++++++++++++++++++ .travis.yml | 7 ------- README.md | 2 +- ci/install_docker.sh | 10 ++++++++++ run-vint => ci/run-vint | 0 5 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml create mode 100644 ci/install_docker.sh rename run-vint => ci/run-vint (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..03d6f80e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: ci + +on: [push, pull_request] + +jobs: + vint: + strategy: + fail-fast: false + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@master + - name: Run vint with reviewdog + uses: reviewdog/action-vint@v1.0.1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 01c451aa..00000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -sudo: required -services: - - docker -language: generic -script: | - ./run-vint diff --git a/README.md b/README.md index 23914fee..e337721b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Vista.vim -[![Build Status](https://travis-ci.org/liuchengxu/vista.vim.svg?branch=master)](https://travis-ci.org/liuchengxu/vista.vim) +[![CI](https://github.com/liuchengxu/vista.vim/workflows/ci/badge.svg)](https://github.com/liuchengxu/vista.vim/actions?workflow=ci) View and search LSP symbols, tags in Vim/NeoVim. diff --git a/ci/install_docker.sh b/ci/install_docker.sh new file mode 100644 index 00000000..54c1df1c --- /dev/null +++ b/ci/install_docker.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Install Docker +sudo apt-get update +sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - +sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" +sudo apt-get update +sudo apt-get install -y docker-ce docker-ce-cli containerd.io +docker --version diff --git a/run-vint b/ci/run-vint similarity index 100% rename from run-vint rename to ci/run-vint