From 5cb40fbcd12bd801c0f9b2a95a29db255eb227c6 Mon Sep 17 00:00:00 2001 From: David Leal Date: Tue, 27 Oct 2020 11:59:23 -0600 Subject: [PATCH] Replace Travis CI with GitHub actions (#596) --- .github/workflows/build.yml | 16 ++++++++++++++++ .travis.yml | 12 ------------ README.md | 2 ++ 3 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..fea960c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: build +on: [push, pull_request] + +jobs: + luacheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Luarocks + run: | + sudo apt-get update -qyy + sudo apt-get install luarocks -qyy + - name: Install Luacheck + run: luarocks install --local luacheck + - name: Run Luacheck + run: $HOME/.luarocks/bin/luacheck mods diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 077e778..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: generic -sudo: false -addons: - apt: - packages: - - luarocks -before_install: - - luarocks install --local luacheck -script: -- $HOME/.luarocks/bin/luacheck --no-color . -notifications: - email: false diff --git a/README.md b/README.md index 6f932e0..8f96a37 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Capture The Flag [![Build Status](https://travis-ci.org/MT-CTF/capturetheflag.svg?branch=master)](https://travis-ci.org/MT-CTF/capturetheflag) +[![Build status](https://github.com/MT-CTF/capturetheflag/workflows/build/badge.svg)](https://github.com/MT-CTF/capturetheflag/actions) + * Fast rounds of CTF games. * Removed nodes for focus.