From 0e041bd343ac8cf62c4c524af0fddf4cb49b643d Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Thu, 9 Jul 2020 22:22:23 +0200 Subject: ci: use GH Actions istead of Travis CI --- .github/workflows/lint.yml | 20 ++++++++++++++++++++ .travis.yml | 11 ----------- README.md | 2 +- 3 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/lint.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..41ee7727 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,20 @@ +name: Linting and style checking + +on: [push, pull_request] + +jobs: + luacheck: + name: Luacheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Prepare + run: | + sudo apt-get update + sudo add-apt-repository universe + sudo apt install luarocks -y + sudo luarocks install luacheck + + - name: Run Luacheck + run: ./scripts/style-check.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a3d4dfe8..00000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ - -language: c -dist: bionic -before_install: - - sudo apt-get update - - sudo add-apt-repository universe - - sudo apt install luarocks -y - - sudo luarocks install luacheck - -script: - - ./scripts/style-check.sh diff --git a/README.md b/README.md index c57b7fb6..baffc9e5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Traditionnal highlighting (left) vs Treesitter-based highlighting (right). [![Gitter](https://badges.gitter.im/nvim-treesitter/community.svg)](https://gitter.im/nvim-treesitter/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) -[![Build Status](https://travis-ci.com/nvim-treesitter/nvim-treesitter.svg?branch=master)](https://travis-ci.com/nvim-treesitter/nvim-treesitter) +![Build Status](https://github.com/nvim-treesitter/nvim-treesitter/workflows/.github/workflows/lint.yml/badge.svg?branch=master) # nvim-treesitter Treesitter configurations and abstraction layer for Neovim. -- cgit v1.2.3