From 3cfff98fc9bb8f2d2fc0ba411bce443662417142 Mon Sep 17 00:00:00 2001 From: David Leal Date: Fri, 2 Oct 2020 04:21:10 -0500 Subject: [PATCH] Replace Travis CI with GitHub Actions (#158) Co-authored-by: Hugo Locurcio --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ .travis.yml | 15 --------------- CHANGELOG.md | 5 +++++ README.md | 2 +- 4 files changed, 30 insertions(+), 16 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..e8f4bda --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: build +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - uses: actions/setup-python@master + + - run: | + sudo apt-get update -qq + sudo apt-get install -qqq luarocks + - name: Install pre-commit + run: pip3 install pre-commit + + - name: Install LuaCheck + run: luarocks install --local luacheck + + - name: Run LuaCheck using pre-commit + run: | + pre-commit run --all-files + $HOME/.luarocks/bin/luacheck . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 211285a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -dist: bionic -language: python - -python: - - 3.7.1 - -install: - - sudo apt-get update -qq - - sudo apt-get install -qqq luarocks - - pip3 install pre-commit - - luarocks install --local luacheck - -script: - - pre-commit run --all-files - - $HOME/.luarocks/bin/luacheck . diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e9a794..98fcfbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Legacy Stairs+ conversion code. - It was only required to import worlds last edited before Q3 2013. + +### Changed + +- Switch to GitHub Actions. + - Benefits include faster responses. ### Added diff --git a/README.md b/README.md index 26020b7..38a1dd4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# More Blocks +# More Blocks [![Build status](https://github.com/minetest-mods/moreblocks/workflows/build/badge.svg)](https://github.com/minetest-mods/moreblocks/actions) More Blocks for [Minetest](https://www.minetest.net/), a free and open source infinite world block sandbox game.