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.