From 4068c89d0b25cd63b8e35f16d33afdc7f94db645 Mon Sep 17 00:00:00 2001 From: David Leal Date: Tue, 23 Jun 2020 14:37:40 -0500 Subject: [PATCH] Replace Travis CI with GitHub Actions (#211) --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ .travis.yml | 17 ----------------- README.md | 1 + 3 files changed, 26 insertions(+), 17 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..83de171 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: build +on: [push, pull_request] + +env: + global: + NOKOGIRI_USE_SYSTEM_LIBRARIES=true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Install Ruby + uses: ruby/setup-ruby@master + with: + ruby-version: 2.6.3 + - name: Install dependencies + run: | + sudo apt-get install libcurl4-openssl-dev + bundle install --jobs=3 --retry=3 --deployment + - name: Run tests + run: | + bundle exec jekyll build + bundle exec htmlproofer '_site/' --allow-hash-href --check-html --http-status-ignore 0 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6897827..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: ruby - -rvm: - - 2.6.3 - -env: - global: - - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer - -addons: - apt: - packages: - - libcurl4-openssl-dev # required to avoid SSL errors - -script: - - bundle exec jekyll build - - bundle exec htmlproofer '_site/' --allow-hash-href --check-html --http-status-ignore 0 diff --git a/README.md b/README.md index 8777e91..89c72c6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # www.minetest.net +[![Build status](https://github.com/minetest/minetest.github.io/workflows/build/badge.svg)](https://github.com/minetest/minetest.github.io/actions)\ The official Minetest website, living at [www.minetest.net](https://www.minetest.net). ## Features